/// <summary> /// Adds specified list object to subscribe to selection change events. /// </summary> /// <param name="list">The list object to listen for selection change events.</param> protected void AddSelectionChange(DataListObject list) { if (list != null) { selectionLists.Add(list); } }
/// <summary> /// Constructs a new data row for the specified data list object. /// </summary> /// <param name="dataList">Data list object that contains this row.</param> public DataRow(DataListObject dataList) { this.List = dataList; for (int i = 0; i < dataList.ColumnCount; i++) { Add(null); // pre-create columns } }
/// <summary> /// Constructs a new data row for the specified data list object. /// </summary> /// <param name="dataList">Data list object that contains this row.</param> public DataRow(DataListObject dataList) { List = dataList; for (int i = 0; i < dataList.ColumnCount; i++) { data.Add(null); // pre-create columns } Editable = new List <bool?>(List.ColumnCount); Editing = new BitArray(List.ColumnCount); Modified = new List <bool?>(List.ColumnCount); }
/// <summary> /// Constructs a new data list row proxy object. /// </summary> /// <param name="list">The list from which to construct the row proxy object.</param> /// <param name="row">The row index.</param> public RowProxyObject(DataListObject list, int row) { this.List = list; this.Row = row; }