本文整理汇总了C#中DataControlRowType类的典型用法代码示例。如果您正苦于以下问题:C# DataControlRowType类的具体用法?C# DataControlRowType怎么用?C# DataControlRowType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DataControlRowType类属于命名空间,在下文中一共展示了DataControlRowType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NopGridViewCustomTemplate
public NopGridViewCustomTemplate(DataControlRowType type, string columnName, string dataType, int paymentMethodId)
{
_templateType = type;
_columnName = columnName;
_dataType = dataType;
_paymentMethodId = paymentMethodId;
}
示例2: GridViewRow
public GridViewRow (int rowIndex, int dataItemIndex, DataControlRowType rowType, DataControlRowState rowState)
{
this.rowIndex = rowIndex;
this.dataItemIndex = dataItemIndex;
this.rowType = rowType;
this.rowState = rowState;
}
示例3: GridViewTemplate
public GridViewTemplate(DataControlRowType type, string colname, string colNameBinding, string ctlType)
{
templateType = type;
columnName = colname;
columnNameBinding = colNameBinding;
controlType = ctlType;
}
示例4: GridViewTemplate
public GridViewTemplate(DataControlRowType type, string colNameFr, string colNameDt, Control con)
{
templateType = type;
columnNameFriendly = colNameFr;
columnNameData = colNameDt;
control = con;
}
示例5: GridViewTableCell
/// <summary>
/// 构造函数
/// </summary>
public GridViewTableCell(TableCell tableCell, int columnIndex, DataControlRowType rowType, DataControlRowState rowState)
{
this._tableCell = tableCell;
this._columnIndex = columnIndex;
this._rowType = rowType;
this._rowState = rowState;
}
示例6: FormViewRow
public FormViewRow(int itemIndex, DataControlRowType rowType, DataControlRowState rowState)
{
this._itemIndex = itemIndex;
this._rowType = rowType;
this._rowState = rowState;
this.RenderTemplateContainer = true;
}
示例7: NopGridViewCustomTemplate
public NopGridViewCustomTemplate(DataControlRowType type,
string columnName, string DataType, int customerRoleId)
{
this.templateType = type;
this.columnName = columnName;
this.dataType = DataType;
this.customerRoleId = customerRoleId;
}
示例8: DetailsViewPagerRow
public DetailsViewPagerRow (
int rowIndex,
DataControlRowType rowType,
DataControlRowState rowState
)
:base (rowIndex, rowType, rowState)
{
}
示例9: GridViewTempBrowse
/// <summary>
/// 构造元素行对象
/// </summary>
/// <param name="strTxtID">当前TextBox控件ID</param>
/// <param name="strField">当前TextBox控件绑定的字段</param>
/// <param name="bReadOnly">TextBox是否只读</param>
/// <param name="txtWidth">TextBox的宽度</param>
public GridViewTempBrowse(string strTxtID, string strHeader, string strField, bool bReadOnly, int txtWidth)
{
templateType = DataControlRowType.DataRow;
m_strTxtID = strTxtID;
m_strField = strField;
m_bReadOnly = bReadOnly;
m_Width = txtWidth;
m_strColumnText = strHeader;
}
示例10: GridViewTempDropDownList
/// <summary>
/// ����Ԫ���ж���
/// </summary>
/// <param name="strTxtID">��ǰTextBox�ؼ�ID</param>
/// <param name="strField">��ǰTextBox�ؼ����ֶ�</param>
/// <param name="bReadOnly">TextBox�Ƿ�ֻ��</param>
public GridViewTempDropDownList(string strTxtID, string strHeader, string strField, bool bReadOnly, int txtWidth, DataTable data, bool AutoPostBack)
{
dt = data;
templateType = DataControlRowType.DataRow;
m_strTxtID = strTxtID;
m_strField = strField;
m_bReadOnly = bReadOnly;
m_Width = txtWidth;
mAutoPostBack = AutoPostBack;
m_strColumnText = strHeader;
}
示例11: GridViewTempTextBoxIncludeHiddenValue
/// <summary>
/// 构造元素行对象
/// </summary>
/// <param name="strTxtID">当前TextBox控件ID</param>
/// <param name="strField">当前TextBox控件绑定的字段</param>
/// <param name="bReadOnly">TextBox是否只读</param>
/// <param name="txtWidth">TextBox的宽度</param>
public GridViewTempTextBoxIncludeHiddenValue(string strTxtID, string strHeader, string strField, bool bReadOnly, int txtWidth, int FieldID, string FieldName, string FieldDBType, int FieldHTMLType, int FieldValidType, string ValidTimeTypeName, int HasRule, DataTable dtRule, DataTable dtColumnsIndex)
{
templateType = DataControlRowType.DataRow;
m_strTxtID = strTxtID;
m_strField = strField;
m_bReadOnly = bReadOnly;
//m_Enabled = Enabled;
m_Width = txtWidth;
m_strColumnText = strHeader;
m_FieldID = FieldID;
m_FieldName = FieldName;
m_FieldDBType = FieldDBType;
m_FieldHTMLType = FieldHTMLType;
m_FieldValidType = FieldValidType;
m_ValidTimeTypeName = ValidTimeTypeName;
m_hasRule = HasRule;
m_dtRule = dtRule;
m_dtColumnsIndex = dtColumnsIndex;
}
示例12: PokerFormViewRow
public PokerFormViewRow (int itemIndex,DataControlRowType rowType,DataControlRowState rowState) : base(itemIndex,rowType,rowState)
{
TrackViewState ();
}
示例13: GridViewCheckBox
public GridViewCheckBox(DataControlRowType type, string colname, string colvisible)
{
templateType = type;
columnName = colname;
columnVisible = colvisible;
}
示例14: CheckBoxTemplate
/// <summary>
/// 模版构造函数
/// </summary>
/// <param name="type">指定数据控件中行的功能类型</param>
/// <param name="multiSelect">是否多选</param>
/// <param name="chkItemName"></param>
/// <remarks>
/// 模版构造函数
/// </remarks>
public CheckBoxTemplate(DataControlRowType type, string chkItemName, bool multiSelect)
{
this.templateType = type;
this.isMultiSelect = multiSelect;
this.checkItemName = chkItemName;
}
示例15: CreateRow
private GridViewRow CreateRow(int rowIndex, int dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, bool dataBind, object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) {
GridViewRow row = CreateRow(rowIndex, dataSourceIndex, rowType, rowState);
GridViewRowEventArgs e = new GridViewRowEventArgs(row);
if (rowType != DataControlRowType.Pager) {
InitializeRow(row, fields);
}
else {
InitializePager(row, fields.Length, pagedDataSource);
}
if (dataBind) {
row.DataItem = dataItem;
}
OnRowCreated(e);
rows.Add(row);
if (dataBind) {
row.DataBind();
OnRowDataBound(e);
row.DataItem = null;
}
return row;
}