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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top