Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a Product table and i want to update Product Record using Grid view, and when i click on Edit button in grid view using Row Editing Event, my select data is passing on other page and here, according to particular product id, data is diaplayed in all fields and Controls, but in Category-dropdown, here only Actual realted categoery is displayed but i want to display all category accept actual category on Top and all other should be after actual category
Posted

1 solution

So, you have to again query your database and fetch all the categories except the ones related to the current Product.

After getting those, just bind that to the DropDownList.
 
Share this answer
 
Comments
Neeraj_kaushik 30-Jun-14 13:52pm    
Hello Mr. Dash
You are right, but i want to display related category on Top and all other category should be after related category
but now, only related category is displaying not all category.

have you got my point.

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