Lennie Kuah

Lennie Kuah

  • NA
  • 29
  • 0

C#.Net2008 Problem trying to retrieve data from DataGridView

Apr 4 2010 6:17 AM

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.