Jorge

Jorge

  • NA
  • 13
  • 0

DefaultView.Sort resetting problem

Sep 10 2012 4:24 PM
Hi all,

I need help with this code:

 DataAdapter1.Fill(DataSet1);
 DataSet1.Tables[0].DefaultView.Sort = "sortcolumn";
 BindingSource1.DataSource =  DataSet1.Tables[0].DefaultView;

After execution, the "DataSet1.Tables[0].DefaultView.Sort" property is reset to empty string.
What might be the cause of this, and how can this be avoided?

Thanks


Answers (4)