Hi Rob,
The EditCommandColumn includes a collection of its child controls in the
Controls property. The buttons are in there.
For example:
Button vButton = (Button) EditCommandColumn1.Controls[0];
vButton.CausesValidation = false;
You wrote: "I'd rather get rid of all .net validators once for all."
Did you know that there are replacements for Microsoft's validators? I sell
a commercial product, "Professional Validation And More", that overcomes the
limitations of Microsoft's validators and greatly expands what you can do.
Some of its features are 17 validators, group validation, client-side
support on many browsers, new ways to get the user's attention and format
the error message, and a client-side toolkit to make more interactive web
forms. Details are at
http://www.peterblum.com/vam/home.aspx.
--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
RobS said:
Morgan,
Thanks for your response.
Setting CausesValidation to true works for most of asp.net controls, but
grid seems to be one of the exceptions here, unless I use hand made buttons
or image buttons. Unfortunatelly, using my own buttons for the grid
edits
is
my last choice, sincer it would require lots of re-coding to handle edits,
cancels and updates. I'd rather get rid of all .net validators once for all.
I am getting tired of them anyway. lol.
Or ... am I missing something?
Regards,
Robert
The problem is that in definition of EditCommandColumn for the grid, there
is no place you can put CausesValidation attribute. Or I am missing
something?