1.DataGrid 设置为允许排序;
2.dataView1.Sort="ProductName DESC";DESC改为大写试一试.

解决方案 »

  1.   

    .DataGrid 设置为允许排序是設的允許排敘.
    2.等會我try it,
      

  2.   

    dataView1 = dSet.Tables[0].DefaultView;//不知道是不是这个没有写,写了就应该OK了,try
    dView.Sort = "ProductName DESC";
    this.dataGrid1.DataSource = dataView1;
      

  3.   

    不行.
    我是用拖拉方式的
    在InitializeComponent里是这么自动定义
    // 
    // sqlSelectCommand1
    // 
    this.dataView1.Table = this.dataSet11.Products;
    this.Load += new System.EventHandler(this.Page_Load);
    ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
    ((System.ComponentModel.ISupportInitialize)(this.dataView1)).EndInit();