4
Answers

DefaultView.Sort resetting problem

Jorge

Jorge

12y
1.4k
1
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)