Disable causesvalidation in DataGrid

J

James P.

Using VB.NET: I would like to disable causesvalidation (of a textbox
and a dbcombo) when the user clicks the update button in the grid
control of the editcommandcolumn. Please help.
Thanks in advance,
James P.
 
T

Teemu Keiski

You would need to dig the Update button in the EditCommandColumn by handling
ItemCreated and looking correct item (ItemType=ItemType.EditItem) then
column & controls for the LinkButton that is generated as the Update button.
After you have found it, set the CausesValidation to false for 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

Members online

Forum statistics

Threads
474,266
Messages
2,571,081
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top