the differences between DataGrid and DataList in HTML View
2008-01-04 21:28
609 查看
1.datagrid
The datagrid’s label of vs.net is
<asp:grid>
<colums>
<asp:bouldcolumn datafield=”A1” headtext=”class”></asp:boundcolumn>
<asp:bouldcolumn datafield=”A2” headtext=”name”></asp:boundcolumn>
<asp:bouldcolumn datafield=”A3” headtext=”sex”></asp:boundcolumn>
</colums>
</asp:grid>
2.datalist
<asp:datalist>
<item template>
<%#DataBinder.Eval(Container.DataItem,”Username”)%>
<asp:CheckBox ID="CK1" runat=Server Checked=FALSE />
<asp:TextBox ID="TextBox1" Width=60 runat="server" Text=<%#"HRG"+DataBinder.Eval(Container.DataItem,"Planner") %> ></asp:TextBox>
</item template>
</asp:datalist>
The datagrid’s label of vs.net is
<asp:grid>
<colums>
<asp:bouldcolumn datafield=”A1” headtext=”class”></asp:boundcolumn>
<asp:bouldcolumn datafield=”A2” headtext=”name”></asp:boundcolumn>
<asp:bouldcolumn datafield=”A3” headtext=”sex”></asp:boundcolumn>
</colums>
</asp:grid>
2.datalist
<asp:datalist>
<item template>
<%#DataBinder.Eval(Container.DataItem,”Username”)%>
<asp:CheckBox ID="CK1" runat=Server Checked=FALSE />
<asp:TextBox ID="TextBox1" Width=60 runat="server" Text=<%#"HRG"+DataBinder.Eval(Container.DataItem,"Planner") %> ></asp:TextBox>
</item template>
</asp:datalist>
相关文章推荐
- Difference between List View and DataGrid in WPF
- Difference between List View and DataGrid in WPF
- OpenStack: What is the difference between Block storage and Object storage?Also, In what way they ar
- What Is the Difference Between a Block, a Proc, and a Lambda in Ruby
- the difference between LAR, and the Bisquare Remain Robust in regression —Curve Fitting Tool
- What is the difference between Views and Materialized Views in Oracle?
- what is the difference between MirrorView, SanCopy, SanpSure and SnapView
- The differences between new(delete) and malloc(free) in c/c++
- The difference between Web role and Worker role in windows azure platform
- 我也谈“the difference between Factory, Service, and Provider in Angular”
- difference between count(*) and count(col) in the query
- Whats is the difference between train, validation and test set, in neural networks?
- What are the differences between a pointer variable and a reference variable in C++?
- The difference between BEB in MACA and in MACAW
- In C++, what’s the difference between an inline function and a macro?
- The difference between an Isolated host and an In-Process host...
- what is the difference between "isempty"and "isnull"in the qt bool QString::isEmpty () const Retur.
- what is the difference between _source and _all in Elasticsearch
- The difference between EXISTS and IN upon Oracle
- What is the difference between getWidth/heigth() and getMeasuredWidth/Heigth() in Android SDK?