Getting Data From Current Cell in DataGrid VB.NET 2003

  • Thread starter Thread starter Atley
  • Start date Start date
A

Atley

I am trying to get the ID number of a record... I have it stored in a 0
width column and need to get it on the click to bring up a record in another
form.... I know how to do this in eVB but am having trouble in VB.NET 2003.

Any help would be appreciated.

Atley
 
Hi Atley

using item property of datagrid we can read the required cell data.

below code will read datagrids selected row's first column data.

datagrid1.Item(datagrid1.CurrentCell.RowNumber, 0)

this you can store in a variable and take it to the next form.

Regs
Vamsi
 
Nevermind, I guess I didn't read it properly the first time... Thank you
very much!!!



Atley
 
Back
Top