当前位置:编程学习 > C#/ASP.NET >>

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#
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,