We have a simple radGrid setup with needDatasource against an arraylist for a demo.
This should be super easy, but on a selectedIndexChange event we want a one line statement to grad the cell data.
We can only find this:
Is there not something like RadGrid1.SelectedItems[0].dataitem["Category"].Text? Do we really have to use the foreach loop?
This should be super easy, but on a selectedIndexChange event we want a one line statement to grad the cell data.
We can only find this:
foreach (GridDataItem dataitem in RadGrid1.SelectedItems) |
{ |
string strTxt = dataitem["Category"].Text; |
} |
Is there not something like RadGrid1.SelectedItems[0].dataitem["Category"].Text? Do we really have to use the foreach loop?