除了将allowsorting属性设为true外,还要在要排序的字段上写SortExpression,并且在datagrid的sortcommand中写代码。
解决方案 »
- .xls 导入 sql2000 问题
- 求VS2010中Chart控件的用法?
- 我是新手~问个菜问题~大家都来看看~50分相送~
- 求助一个批量插入记录的代码[ASP]
- 100分求助,网站每天自动备份
- 如何禁用DataGrid???
- 新人第一帖!在线等!!~~
- 如何将DataTable中某行的数据复制到一新DataRow中
- <input type="File" >的功能替代问题再次提问!beyond_xiruo请进
- <a href="javascript:void(window.open('info.asp?id=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>','订单分配','height=60
- 怎样动态生成Datagird的模板列?模板中是TextBox?
- 一个关于treeview的难题,高人一定要进来!
{
gstrSortOrder = objArgs.SortExpression.ToString();
BindDataGrid();
}
可我早期已写过了啊! 还不会显示链接,why???
<asp:BoundColumn DataField="hbdwno" SortExpression="hbdwno" ReadOnly="True" HeaderText="工号"></asp:BoundColumn>