How to get Row and ColId of datatable

  • Thread starter Thread starter Krish
  • Start date Start date
K

Krish

I have an event handler for column changed event.

When a column changes, I would like to find out what row/column changed .

The event handlers donot help me get to the property.

thanks for any help.
 
Hi Krish
This info is wrapped inside the DataColumnChangeEventArgs for you to use
.. with in that argumnent you have the row and column properties

e.row get the row of the column with a changing value
e.column get the column of the column with a changing value
so is the case if you are handling row changed event



private void olaaa_ColumnChanged(object sender, DataColumnChangeEventArgs e)
{
e.Row; //use this
e.Column; // use thins
}
Hope that helps

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top