关于asp.net datagrid排序、分页的问题:首先读取数据库表格已经完成
其次,datagrid 可排序也已经设置好
<asp:DataGrid ID="DataGrid1" runat="server" AllowSorting="true" OnSortCommand="DataGrid1_SortCommand" >
</asp:DataGrid>
另外,DataGrid1_SortCommand事件也已经添加
protected void DataGrid1_SortCommand(object source, DataGridSortCommandEventArgs e)
{ }表格也显示出可排序的状态问题:点击某个字段想排序的时候,状态栏显示:网页上有错误,基本上没有调用DataGrid1_SortCommand事件,请教各位大虾,是什么原因呀?
其次,datagrid 可排序也已经设置好
<asp:DataGrid ID="DataGrid1" runat="server" AllowSorting="true" OnSortCommand="DataGrid1_SortCommand" >
</asp:DataGrid>
另外,DataGrid1_SortCommand事件也已经添加
protected void DataGrid1_SortCommand(object source, DataGridSortCommandEventArgs e)
{ }表格也显示出可排序的状态问题:点击某个字段想排序的时候,状态栏显示:网页上有错误,基本上没有调用DataGrid1_SortCommand事件,请教各位大虾,是什么原因呀?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货