Ray Ellison

Ray Ellison

  • NA
  • 1
  • 0

Don't allow duplicates in DropDownList in a GridView

Sep 30 2008 10:18 AM
Hello all,

I have a simple DropDownList in a GridView control. The DropDownList Only has 3 values in it (1, 2 and 3). This represents a priority level.

I want to be able to check before saving (without a autopostback) that the priority has already been entered. In other words, the user cannot have 2 priority 2's or 2 priority ones.

I'm trying to find a way to loop through the grid and check the cell that holds this value and make sure it doesn't already exist.

Any help on this would be greatly appreciated.

TIA
RaynMan