Answers
May 22, 2007 - 09:39 AM
http://www.codeproject.com/vb/net/gri...
This probably doesnt directly answer your question, but its something Im throwing your way as part of learning how to use datagrids
May 22, 2007 - 10:44 PM
pass in row,col to get a value of a cell
eg
mydatagrid(iRow, iCol)
Use the CurrentCell method to get the rownumber and columnnumber
eg I have a datagrid called DataGrid1
mytextbox.text = DataGrid1(DataGrid1.CurrentCell.RowNumber, DataGrid1.CurrentCell.ColumnNumber)
May 30, 2007 - 02:32 AM
Jun 04, 2008 - 10:56 AM
Mar 08, 2010 - 05:04 PM
txtname.Text = DataGridView1.CurrentCell.Value
Mar 08, 2010 - 05:15 PM
Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
Dim x As String
x = DataGridView1.CurrentCell.Value
MsgBox("Cell:" + x)
End Sub
Jul 21, 2010 - 08:41 AM
whitout using form.show() method.
Mar 16, 2011 - 08:39 AM
thank you
Add New Comment