Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Added/Deleteing or Editing Events in DataGrids

Status
Not open for further replies.

groganBall

Programmer
Sep 18, 2003
6
NZ
Hi All,

Is there any way you can tell when a row has been added/deleted or edited in a Datagrid’s DataSource in C#?

I need to know when a row is added/deleted or edited I can update a structure I have created,

Joshco
 
If the DataSource is DataSet then there are RowChanging, RowChanged, RowDeleting, RowDeleted events on a DataTable object.
If the DataSource is an ArrayList, for example, then you will implement such events.
obislavu
 
Cheers Obislavu,

Does anyone understand how RowChanged works?

When I add a new Row, it does not send me the updated DataTable back from the DataGrid, (Its missing the added Row). Although it sends back the added row in the Args.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top