Retrieve Current cell of the grid!

ramnujs

Well-known member
Joined
Jul 5, 2005
Messages
53
Location
Philippines
Programming Experience
3-5
Is there a grid control in vb.net that would allow me to retrieve the current row and column of the cell being clicked?
 
VB.NET:
Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.CurrentCellChanged
		MessageBox.Show("Col is " & DataGrid1.CurrentCell.ColumnNumber _
	  & ", Row is " & DataGrid1.CurrentCell.RowNumber _
	  & ", Value is " & DataGrid1.Item(DataGrid1.CurrentCell))

	End Sub

Blokz
 
Thanks for the effort, i really appreciate it!
But i was refering to an Unbounded Grid, just like MsFlex, vsFlexGrid in VB6 . But anyway's i have solved the problem already. Thanks fo the InterRop feature of VB.net. I used vsFlexGrid Control......
 
Back
Top