Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to highlight duplicate values only in a first column of gridview using javascript in asp.net c#?
Posted
Comments
AmitGajjar 14-Aug-12 2:01am    
you can update gridview cell color at runtime. but i am afraid if you want to do that using javascript then how you will handle paging ?
veenusethi 14-Aug-12 5:20am    
Mainly i want to prevent duplicate selection from combobox in gridview itemtemplate which is first column of gridview? how i can check already selection has done from combobox
SinghPrateek 27-Aug-12 4:07am    
Another view on this issue:-
Do not allow values which are already present in grid into the drop-down list, so that the problem to validate whether it is unique is not required.
At the time of binding the grid, find the all items from the grid and store it into view state, while adding a new item in the grid, remove the values stored earlier in view state from the drop-down list
veenusethi 27-Aug-12 7:16am    
i have a dynamic gridview. here items are inserted by users . Gridview is not binded with database

for ex. i have three coumns
in 1) column item,
2) qty,
3) amount
1) in first column items here is combobox user will select item from here
2) in second column textbox exist here user will insert quantity value
3) In third user will enter amount
So i want user selct or enter item in first column without duplicasy one item should be select one time

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900