By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,155 Members | 952 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,155 IT Pros & Developers. It's quick & easy.

validation of a datagrid

P: n/a
Hi,

I have a windows form with a datagrid. The datagrid is bound to a typed
dataset. Is there a built in validation function for windows forms? To
validate the text boxes i have extended the textbox. However i am not sure
how to perform validation on a datagrid.

should i just catch the sql exceptions?

Thank you in advance for any help you can give me, as i havent been able to
find the answer anywhere.

Claire
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi claire,

Why don't you do this:
1. Check for the changes proposed in the datarow
2. Verify whether the changes are valid or not. If not, set the RowError property of the row. This will automatically make the datagrid show the ErrorProvider for that row.

--
Rakesh Rajan
"claire" wrote:
Hi,

I have a windows form with a datagrid. The datagrid is bound to a typed
dataset. Is there a built in validation function for windows forms? To
validate the text boxes i have extended the textbox. However i am not sure
how to perform validation on a datagrid.

should i just catch the sql exceptions?

Thank you in advance for any help you can give me, as i havent been able to
find the answer anywhere.

Claire

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.