Hello,
I am starting to use ultrawebgrid, and I have a problem to get a cell value:
My datasource is coming from a service web, and I have one column named KEY. when user selects a line, I would like to get the KEY value in code behind. (I would something like equivalent at :
UltraWebGrid1.Rows[UltraWebGrid1.SelectedRowsChange].Cells[1].Text.Trim();
with a "standard" gridview (where KEY is my first column)
How would it be possible to do this?
Thanks for your help
The selected rows collection is passed into the SelectedRowChanged event. So your handler for it might look something like this:
void UltraWebGrid2_SelectedRowsChange(object sender, Infragistics.WebUI.UltraWebGrid.SelectedRowsEventArgs e)
{
e.SelectedRows[0].Cells.FromKey("KEY").Text.Trim();
}