No data-aware events using DataGrid & DataSet

  • Thread starter Hans Olav Stjernholm
  • 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.
 
O

One Handed Man

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
 
C

Cowboy \(Gregory A. Beamer\)

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!
****************************************************************************
****
 

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

Top