Hi
Basically I need to store the values of a few cells in varibles, however I cant remember how to target a specific cell, I have tried several different methods but they havent worked.
Help appreciated.
Printable View
Hi
Basically I need to store the values of a few cells in varibles, however I cant remember how to target a specific cell, I have tried several different methods but they havent worked.
Help appreciated.
try this ;)
vb Code:
Dim yourRow As Integer = 1 Dim YourCell As Integer = 2 Dim copy As String copy = DataGridView1.Rows(yourRow).Cells(YourCell).Value
Yep, thats a good example, problem solved.