DataSet and Grid

G

Guest

I want to hook up a DataSet to a grid but control the error display to the
user. An exaple is user inputs invalid data and program puts up special
message display instead of default eror messge from DataSet/grid combinatio.

Thanks,

Marc
 
W

W.G. Ryan - MVP

Marc- it really depends on how you want ti displayed, but you can trap
RowChanging/ColumnChanging RowChanged/ColumnChanged and then just validate
on your own. Another way you can go about this though is say that instead
of ensuring if a integer goes intoa field, you need to ensure an address is
valid. You can use the dataset's extendeded properties to tell if/what
checks you want to perform and then in combination of the events above, do
this very granularly. If you check out the documentation on MSDN w/ respect
to DataSet class and extended properteies
(http://msdn2.microsoft.com/en-us/library/80azewew(en-US,VS.80).aspx) .Tons
of potential here to do much of what you want, however you want to do it.
 

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