Jorge

Jorge

  • 0
  • 8
  • 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


Brought to you by:

Answers (4)