| | |
Validation (using validators) between rows in GridView
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Aug 2007
Posts: 55
Reputation:
Solved Threads: 1
Hi,
I have a DropDownList (filled in the rowCreated method) in a TemplateColumn in a GridViewRow.
A user can add a row to select another value in the new dropdownlist created.
I need to trigger a validator (I need this because this is only a small part of a site that shows validations using the validatorcalloutextender and I am trying to avoid to simulate the funcionality of the validator) that validates if someone tries to select the same value of the dropdownlist...
I just wonder if that can be possible, or, I just have to settle with the simulation...
Thanks!
I have a DropDownList (filled in the rowCreated method) in a TemplateColumn in a GridViewRow.
A user can add a row to select another value in the new dropdownlist created.
I need to trigger a validator (I need this because this is only a small part of a site that shows validations using the validatorcalloutextender and I am trying to avoid to simulate the funcionality of the validator) that validates if someone tries to select the same value of the dropdownlist...
I just wonder if that can be possible, or, I just have to settle with the simulation...
Thanks!
•
•
Join Date: Aug 2007
Posts: 55
Reputation:
Solved Threads: 1
Hi again,
I found my own answer... I used CustomValidator and set the OnServerValidate property to a method on the codebehind to go through the gridview comparing the SelectedValue of the current dropdownlist...
I hope that helps to someone... If anyone want some code, send me a private message...
Thanks again!
I found my own answer... I used CustomValidator and set the OnServerValidate property to a method on the codebehind to go through the gridview comparing the SelectedValue of the current dropdownlist...
I hope that helps to someone... If anyone want some code, send me a private message...
Thanks again!
![]() |
Similar Threads
- editing Rows of the gridview, which is bounded with DataTable (ASP.NET)
- passing seleced rows from gridview to another page (ASP.NET)
- Getting data from a selected row in a gridview (VB.NET)
- adding column in a nested gridview (ASP.NET)
- problem regarding check box in gridview (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: add more parameters on select method
- Next Thread: Read Only Form in ASP NET Page
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox class click commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list listbox login menu microsoft mono mouse mssql multistepregistration nameisnotdeclared news numerical objects order panelmasterpagebuttoncontrols problem radio ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webservice wizard xml youareanotmemberofthedebuggerusers





