Hi , i'am trying to get the selected row in a ultrawebgrid, i'm using the event SelectedRowsChange, but it always throw an exception this rhe code:
protected void uwgDocumentos_SelectedRowsChange(object sender, Infragistics.WebUI.UltraWebGrid.SelectedRowsEventArgs e)
{
string i = string.Empty;
i = e.SelectedRows[e.SelectedRows.Count].Cells[0].Text;
}
the exception is nullReferenceException, it seem that there is no row selected or something like that, please i really need help with this. thanks
Hi Edison,
I am not sure why it fails, it works for me and I have attached the sample that I used to test it. Run the attached sample and try to reproduce the issue. Also it is very difficult to judge from a code snippet if the code would work.