绑定网格中的下拉列表 [英] binding the dropdown in grid
问题描述
您好我有三张桌子:
税表
test1
test2
test3
费用表
费用1
费用2
费用3
应税费用有两栏
test1费用1
test2费用2
test3 fee3
现在我有一个网格......它有两列,都是下拉列表......我想得到行数根据第三个表中的记录,例如,如果第三个表中有3个记录在网格中获得3行....并且第一个下拉列表应绑定到税表,第二列应绑定到费用表.... />
请帮助
hi i had three tables:
tax table
test1
test2
test3
fee table
fee1
fee2
fee3
taxable fee which has two columns
test1 fee1
test2 fee2
test3 fee3
now i have a grid...it has two columns which are both dropdowns......i nned to get the number of rows as per the record in third table for example if there are 3 records in third table ined to get 3 rows in grid....and first dropdown should bind to tax table and second column should bind to fee table....
please help
推荐答案
有一个名为Rowdatabound的GridView事件br />
[ ^ ]
http://www.dotnetgallery.com/kb/resource17-RowDatabound-event-tips-and-tricks-in-Gridview- control.aspx [ ^ ]
这些链接可以为您提供帮助。
there is an event for GridView called Rowdatabound
[^]
http://www.dotnetgallery.com/kb/resource17-RowDatabound-event-tips-and-tricks-in-Gridview-control.aspx[^]
these links will help you.
这篇关于绑定网格中的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!