0

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!

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by culebrin
0

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!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.