关于对dataGrid和dataset排序的问题? 我查看dataSetDetail.Tables[0].DefaultView时已经是对其进行排序了为什么在datagrid中显示的数据是没有排序的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 问题出在:this.dataGrid1.DataMember = this.dataSetDetail.Tables[0].TableName;应是:this.dataSetDetail.Tables[0].DefaultView.Sort=strDetailSort; this.dataGrid1.DataSource = this.dataSetDetail.Tables[0].DefaultView this.dataGrid1.DataBind(); 试试this.dataGrid1.DataSource = this.dataSetDetail.Tables[0].DefaultView; C#获取本机已经安装的.net framework版本号。 dev中chartControl控件的用法 一个窗体到另一个窗体数据的传递 SQL问题,好久不写了 如何不在page_Load中注册Button的Attribute属性实现return confirm C# 添加注释的类型 能控制么? 求助 webForm数据的操作? 高手请进!关于概念的问题 关于 混淆 与 反射的冲突~~~ 怎样做简繁体转换的程序? 在webform显示水晶报表的问题!
应是:this.dataSetDetail.Tables[0].DefaultView.Sort=strDetailSort;
this.dataGrid1.DataSource = this.dataSetDetail.Tables[0].DefaultView
this.dataGrid1.DataBind();