No data-aware events using DataGrid & DataSet

  • Thread starter Thread starter Hans Olav Stjernholm
  • Start date Start date
H

Hans Olav Stjernholm

Hi!

I'm using a DataSet and a DataGrid in a Windows Form. All I want to do, is
perform something when the user adds, updates or deletes rows in the
DataGrid. And as far as I can see there aren't any data-aware events in the
DataGrid, nor in the DataSet.

This should be a relative common demand when working with data, I guess.

Thanks in advance!

'Hans Olav.
 
The control is bound to a table within the DS. Add a handler to halde
changes such as

AddHandler tableEvents.RowChanged, New DataRowChangeEventHandler(AddressOf
Events_Row_Changed)

HTH
 
In the DataGrid, look at the documentation for the UpdateCommand event and
ItemCreated event. There are code samples in the documentation.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
Back
Top