Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid - selecteditem

Status
Not open for further replies.

peekay

Programmer
Oct 11, 1999
324
ZA
In asp.net the datagrid has a selecteditem property, but I cannot find it in the windows forms control of the datagrid. How would I determine which row was clicked and how would I retrieve the value of the first column of that row. Sorry I am new to VB.NET - made the long threatened change from VB6 only now.

PK Odendaal
 
This usually works for me
Code:
value = myDataGrid.Item(myDataGrid.CurrentRowIndex, 0)

Jay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top