Rowupdating get spot dating artifact trackback url closed

New Edit Index; populate Data(); // Here populate data for dropdown state Drop Down List dd State Edit = (Drop Down List)Grid View1. Selected Value = state ID; } Drop Down List dd City Edit = (Drop Down List)Grid View1.

rowupdating get-90

Text); Sql Command cmd = new Sql Command("select * from State where Country ID = @Country Id", con); cmd. Add("@Country ID", Country Id); Sql Data Adapter da = new Sql Data Adapter(cmd); Data Set ds = new Data Set(); da.

Insert(0, new List Item("--Select--", "0")); } } protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) { Drop Down List ddl= (Drop Down List )Grid View1.

Find Control("ddl State"); string selectedvalue=ddl.selectedvalue; //My custom code to change last moment values with that selected from Drop Down List e.

' number of rows in a Grid View with each row having a Drop Down List with different values.

I am populating Drop Down Lists dynamically and all the values are populated properly in Drop Down Lists.

When I change the selected value of Drop Down List for each row and press the button to save these values, I always get the value of 0 index instead of the value that I have selected. To String(); count++; } } protected void Grid View1_Row Command(object sender, Grid View Command Event Args e) { if (e. I found lot of questions like this but none of them helps me. What's the reason it doesn't get the right selected value from Drop Down List? When I remove the Grid View and just use Drop Down List then it works fine. Data Row) { //Data Row View o Row = (Data Row View)e. Data Item; Link Button lnk Post Type = (Link Button)e. int count; protected void Grid View1_Row Data Bound(object sender, Grid View Row Event Args e) { if (e. Trim()); Drop Down List ddl New = (Drop Down List)Grid View1. Selected Value; } } protected void Grid View1_Row Editing(object sender, Grid View Edit Event Args e) { string state ID = Grid View1.

Comments are closed.