.net datagrid problem. Help!!!
I have written a dataset into a datagrid, when I click on a row in the datagrid I want to find the row and column number.
When I click on a row in the grid I trigger the CurrentCellChanged event and run the following two lines of code.
Dim colNum As Integer = DataGrid1.CurrentCell.ColumnNumber
Dim rowNum As Integer = DataGrid1.CurrentCell.RowNumber
The problem I have is that colNum and RowNum are passing back hexidecimal values that look like '&H3'..
Can anyone tell me why I am not just getting back plain integers?