0
Answer

C#.Net2008 Problem trying to retrieve data from DataGridView

Ask a question
Lennie Kuah

Lennie Kuah

14y
2.8k
1

Hi there,
Having problem trying to retrieve the data from DataGridView1 using C#.Net 2008
Here are the coding that is not woking.
 
Int32 iRowIndex = this.dataGridView1.CurrentRow.Index;
intOrderID = this.dataGridView1.CurrentRow(0, iRowIndex);

Here is the error message referring to CurrentRow
Error 3 Non-invocable member System.Windows.Forms.DataGridView.CurrentRow' cannot be used like a method.