在正常状态,用Label控件显示
在编辑状态,用CheckBox控件显示
(4) 为枚举类型列应用模板列,如业务地区(全网/广东/云南等等)
<%#DataBinder.Eval(Container,"DataItem.DealWith")%>
在正常状态,用Label控件显示
在编辑状态,用DropDownList控件显示
(5)为长字符串应用模板列,如一篇文章的内容
还未做过
4.为DataGrid控件添加按钮列
HeaderText="Removefromcart" ButtonType="PushButton" Text="Remove" CommandName="RemoveFromCart"/> (1)要使用按钮列,必须在DataGrid控件中添加OnItemCommand属性,并为该事件添加处理方法. (2)模板列可以实现按钮列能实现的任何功能. 5.为DataGrid控件添加编辑列 (1)ButtonType有两个值:LinkButton超级链接样式按钮的列|PushButton普通按钮的列。 [8] [9] [10]
