DataGrid rowchanging

  • Thread starter Thread starter Shravan
  • Start date Start date
S

Shravan

Hi ,
I want to catch the row changing of a grid before it is changed and
raise an event and based on event I should supress the change or allow
it. Though I am doing it by changing the row and reverting back now, I
would like to catch it before the row is actually changed due to a
variety of problems with the existing approach. Anybody please help me
how could I do this.

Thanks,
Shravan.
 
Shravan,

I think that instead of catching the events on the DataSet itself, you
should be encapsulating the data and then controlling the access to the data
through that. This way, you control exactly what is changed and what can be
changed.

Hope this helps.
 

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