datagrid绑定这一小段代码中的问题
先定义 Protected DataTable tbBranch;在page_load里从数据库读出tbBranch
绑定:
<asp:DropDownList id=listpm Runat="server" SelectedIndex='<%#((System.Data.DataView)Container.DataItem)["BranchIndex"]%>' DataSource="<%# tbBranch %>"/>
这段代码中:SelectedIndex='<%#((System.Data.DataView)Container.DataItem)["BranchIndex"]%>'是什么意思,其中的BranchIndex是指什么?