Hi
Am getting the following error:
Object Reference not set to an instance of an object
The component that i am using is a ultrawebgrid (basically a nice looking datagrid) where you can click on each individual row.
What i am doing is when you double click on a row, then i get the row number and then i will get the actual reference number at the start of that row.
The code that i am using to handle the double click event is:
private sub webgrid_DblClick(ByVal sender as object, ByVal e as Infragistics.webui.ultrawebgrid.clickeventagr) handles webgrid.DblClick
Dim row as string
row = e.row.index
label1.text = webgrid.rows(row).cells(0).tostring
end sub
In case you have any doubt about the code, it works grand, i.e. it does what it has to do in another project. Didn't do anything different in this project. Would appreciate it if ye could have a look and suggest some reasons why the object ref is acting up.
Mike
Am getting the following error:
Object Reference not set to an instance of an object
The component that i am using is a ultrawebgrid (basically a nice looking datagrid) where you can click on each individual row.
What i am doing is when you double click on a row, then i get the row number and then i will get the actual reference number at the start of that row.
The code that i am using to handle the double click event is:
private sub webgrid_DblClick(ByVal sender as object, ByVal e as Infragistics.webui.ultrawebgrid.clickeventagr) handles webgrid.DblClick
Dim row as string
row = e.row.index
label1.text = webgrid.rows(row).cells(0).tostring
end sub
In case you have any doubt about the code, it works grand, i.e. it does what it has to do in another project. Didn't do anything different in this project. Would appreciate it if ye could have a look and suggest some reasons why the object ref is acting up.
Mike