DetailsView 控件
DetailsView 控件怎么绑定、显示数据的,是从Gridview 跳转过来的 吗我是新手 急急急··········· --------------------编程问答-------------------- 啥detailsView控件? --------------------编程问答-------------------- <asp : SqlDataSource ID ="SqlDataSource1" runat ="server" ConnectionString =" <%$ ConnectionStrings:ConnectionString %> "
SelectCommand ="SELECT * FROM [Tb]"></ asp:SqlDataSource >
<asp:DetailsView ID ="DetailsView1" runat ="server" AutoGenerateRows ="False" DataSourceID ="SqlDataSource1"
Height ="50px" Width ="208px">
<Fields>
<asp : BoundField DataField ="id"
HeaderText ="id" InsertVisible ="False"
ReadOnly ="True" SortExpression ="id" />
</Fields>
</asp:DetailsView >
http://developer.51cto.com/art/200907/139518.htm
也可gridview DetailsView结合显示
this.DetailsView1.PageIndex = this.GridView1.SelectedIndex;
补充:.NET技术 , C#