Hi wapsiii,
Dataview sort Expression is similar to sql query sort (without ORDER BY). It
takes column name (or names). If you really want to use column index, I
suggest you use following way:
dv.Sort = dv.Table.Columns[col_index].ColumnName;
HTH
Elton Wang
"wapsiii" wrote:
is it possible to sort a dataview by a column index?
Instead of this:
dv.Sort = "Id";
I'd like to do this:
dv.Sort = 0; // where 0 is column index
/M