开发者

Get rowdata as bound to the gridview datasource

开发者 https://www.devze.com 2023-02-03 03:50 出处:网络
My GridView is bound to a certain DataSource. Each row only shows 4 of the 8 possible items. Lets say we have name, adress, phone, fax, email, country, province and age.

My GridView is bound to a certain DataSource. Each row only shows 4 of the 8 possible items. Lets say we have name, adress, phone, fax, email, country, province and age. The GridView would only show name, email, country and age, but I want to access the province and adress bound to a row. How is this possible?

I got a custom GridView, with an onclick event which updates an panel (through AJAX) which shows 开发者_运维技巧additional information about the selected row.

Thanks in advance!


You need to another control (FormView, DetailView) that will show detailed info. It has be bound to DataSource as well and it should take Gridview.SelectedRow for input parameter.

Its called master/detail. Google it and you will find a lot of step by step tutorials.

0

精彩评论

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