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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rows Selected in the Datagrid. How to get cell's value? 1

Status
Not open for further replies.

VladimirKim

Programmer
Jan 20, 2005
49
US
Hi,
If in the datagrid rows are selected, how would I get the value of the cell of the first selected row and the column "Date"?
Thanks.
 
Use CurrentCell.Rownumber and/or CurrentCell.ColumnNumber

Dim Teststr as String

Teststr = DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, 2)

This will load Teststr with the contents of Column 2 of the selected row.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top