| | |
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 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv gridview gudi iis javascript list listbox login menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





