public void FillKey(System.Data.DataTable table, int rowIndex) { if (!isFixedValue) { // use context key value ; if (string.IsNullOrEmpty(colName)) { keyValue = null; } if (rKey == null) { rKey = ReusedKey.FindReusedKey(this); } keyValue = rKey.GetReusedValue(table, rowIndex); // RangeHelper.GetColValue (table, rowIndex, colName) ; } if (nextKey != null) { nextKey.FillKey(table, rowIndex); } }
public object GetGroupValue(GroupDataHolder holder, DataTable table, int valueIndex) { if (rGroupKey == null) { SearchKey key = new SearchKey(); key.colName = this.tplGroupColName; rGroupKey = ReusedKey.FindReusedKey(key); } return(rGroupKey.GetReusedValue(table, valueIndex)); // return RangeHelper.GetColValue(table, valueIndex, tplGroupColName); }