DefaultView and sort

  • Thread starter Thread starter Manjunath sp via DotNetMonster.com
  • Start date Start date
M

Manjunath sp via DotNetMonster.com

Hi,
I have a dataset 'dst' having table 'dt' which is bound to grid, I have
set the sorting order for this by using following code.

dst.DefaultView.Sort = "id, text ASC";

This does not work, however if I set the default view using the follwing
code,
dt.DefaultView.Sort = "id, text ASC";
sort works. Any Reason?
 
Manjunath,

The dataset has no defaultview (it has a defaultviewmanager), therefore how
did you realize this withouth getting an error?

Cor
 
Back
Top