苹果微信来信息不提示:asp.net(c#)求助;在datagrid中,TemplateColumn和BoundColumn有什么区别?

来源:百度文库 编辑:高校问答 时间:2024/03/29 03:27:34
asp.net(c#)求助;在datagrid中,TemplateColumn和BoundColumn有什么区别?

TemplateColumn Coloumn is a Template,it's item's container,put in the Table or button or image and textbox......,but BoundColumn just put in the Value.

TemplateColumn example:
<TemplateColumn>
<table> // This's a table
<tr>
<td><input type="submit" id="myButton" value="submit" runat="server"> // this's a button
</td>
</tr>
</table>
</TemplateColumn>

BoundColumn example:
<BoundColumn>
<%# DataBinder.Eval(Container.DataItem,"studentName"%> // this's a Column value
</BoundColumn>