void unboundDS_ValueNeeded(object sender, UnboundSourceValueNeededEventArgs e)
 {
     if (this.Differences.Count > 0)
     {
         object rv;
         if (this.Differences.TryGetValue(new CellKey(e.RowIndex, e.PropertyName), out rv))
         {
             e.Value = rv;
             return;
         }
     }
     e.Value = GetDefaultData(e.RowIndex, e.PropertyName);
 }
コード例 #2
0
 void unboundSource_ValueNeeded(object sender, UnboundSourceValueNeededEventArgs e)
 {
     e.Value = dataSource[e.RowIndex].GetData((int)e.Tag /* column index */);
 }