I have a RadGrid that is Databound against a HashTable. The HashTable returns a Key, and a pair of values (First and Second) like this:
<code>
Dim p As Pair = CType(EditTable(key), Pair)
p.Second = CType(DefaultTable(key), Pair).First
EditTable(key) = p
</code>
How can I define First and Second in Radgrid1_ItemDataBound? I have tried the following which does not work:
Anyone?
<code>
Dim p As Pair = CType(EditTable(key), Pair)
p.Second = CType(DefaultTable(key), Pair).First
EditTable(key) = p
</code>
How can I define First and Second in Radgrid1_ItemDataBound? I have tried the following which does not work:
| Dim resValue As GridBoundColumn = RadGrid1.MasterTableView.GetColumn("resValue") |
| Dim resDefaultValue As GridBoundColumn = RadGrid1.MasterTableView.GetColumn("resDefaultValue") |
| Dim item As GridEditableItem = e.Item |
| resValue.DataField = DataBinder.Eval(CType(item.DataItem, DataRowView), "Value").First() |
| resDefaultValue.DataField = DataBinder.Eval(CType(item.DataItem, DataRowView), "Value").Second() |