开发者

how to populate dropdown box in gridview in edit mode?

开发者 https://www.devze.com 2023-03-07 14:27 出处:网络
i have loaded input country dropdown at the time of data insertion. Select.. Af开发者_开发百科ghanistan

i have loaded input country dropdown at the time of data insertion. Select.. Af开发者_开发百科ghanistan Aland Islands Albania Algeria

now i m showing that data in gridview and want to edit that data too. for that i need to populate that whole list of country again. how to do that?


Hope this helps:

http://www.codeproject.com/KB/webforms/editable_gridview_control.aspx


Fill your DropDownList control in the DridView.RowDataBound event.


This sounds like an asp.net question. You can load the data on the control's Load() event. Just add the event and when it fires, load the data for it.

0

精彩评论

暂无评论...
验证码 换一张
取 消