Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Could any one please give me a code to get away on this problem i have. my gridView is populated by the value of a dropdown list, Please good progreammers I really need this.

[edit]Urgency deleted - OriginalGriff[/edit]
Posted
Updated 9-Sep-11 6:18am
v4
Comments
BobJanova 9-Sep-11 12:16pm    
Unclear. Please expand on what the problem is and where you are stuck.
OriginalGriff 9-Sep-11 12:17pm    
What have you tried?
Don't stress the urgency: It may be urgent to you, but it isn't to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response.
Dirk C De Winnaar 9-Sep-11 17:40pm    
Give us your code so we can have a look at it....?
pankajupadhyay29 10-Sep-11 12:13pm    
what u mean by populated by drop down? Are you showing record based on dropdown selection??
Victoria Rowe 13-Sep-11 3:02am    
I suspect you want to use the update command in gridview but it's not working because you use a dropdown list? If this is correct then I have the same issue but I found this helpful although I didn't quite undertand it...
DropDownList as ItemTemplate within a GridView with an ObjectDataSource updating a database - you'll find it in code project - just search.

1 solution

on the row_editing event
do this
(drpsitename)is dropdown and grd[purchaseorder is the grid
DrpSiteName.SelectedItem.Text=grdPurchaseOrder.Rows[e.NewEditIndex].Cells[5].Text;
hope this will help
 
Share this answer
 

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