Getting Data From Current Cell in DataGrid VB.NET 2003

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
 
G

Guest

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
 
A

Atley

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



Atley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top