Before saving a new record, I need to be able to check if the values in a field in each row of a datagrid add up to the value in another textbox.
I was going to write a Custom Validator function but when I write the following :
<asp:CustomValidator id="cvdFunding" runat="server" ControlToValidate="dgFunding" ErrorMessage="Total must be the same as allocation" Display="Dynamic"/>
I get an error message
"Control 'dgFunding' referenced by the ControlToValidate property of 'cvdFunding' cannot be validated."
Is it not possible to send the whole datagrid to the Validation function so I can run through each row?
....vwhite
"I used to have a handle on life...then it broke
I was going to write a Custom Validator function but when I write the following :
<asp:CustomValidator id="cvdFunding" runat="server" ControlToValidate="dgFunding" ErrorMessage="Total must be the same as allocation" Display="Dynamic"/>
I get an error message
"Control 'dgFunding' referenced by the ControlToValidate property of 'cvdFunding' cannot be validated."
Is it not possible to send the whole datagrid to the Validation function so I can run through each row?
....vwhite
"I used to have a handle on life...then it broke