DropDownList in GridView
-
hi, Can anyone tell me how to bind a DataTable Column field to a DropDownList Items which is present in a GridView. DataTable and GridView is generated at runtime.
A key to every Solution
You need to find DropDown from GridView in GridView's RowDataBound event and bind it.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
hi, Can anyone tell me how to bind a DataTable Column field to a DropDownList Items which is present in a GridView. DataTable and GridView is generated at runtime.
A key to every Solution
You can add the dropdownlist to the template column at runtime. then, In rowcreated event of Gridview, you can find the dropdownlist that you have added and bind the data.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
You need to find DropDown from GridView in GridView's RowDataBound event and bind it.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
You need to find DropDown from GridView in GridView's RowDataBound event and bind it.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
You can add the dropdownlist to the template column at runtime. then, In rowcreated event of Gridview, you can find the dropdownlist that you have added and bind the data.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)