Try checking for errors and displaying your own message in the DataGrid's
Validating event handler. You can then set the Cancel property of the
CancelEventArgs object passed to the event handler to true (e.Cancel=true;)
to suppress all events that would normally be fired after the Validating
event.
Hope this helps.
--
Kai Brinkmann [MSFT]
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"perpolis" <re*****@hotmail.com> wrote in message
news:OS**************@TK2MSFTNGP14.phx.gbl...
I bound a dataset which has some constraints to my datagrid,..
and if user wrong info( like entering duplicate info in a Unique
column)the
datagrid show him a Message,
but i want show user my message instead of datagrid's message..