add sorting to a repeater ?

  • Thread starter Thread starter TJS
  • Start date Start date
hi,
its possible.suppose ds is the name of the dataset.
create a view
dataview dv;
dv=ds.tables[0].defaultView;
dv.RowFilter="Name='joan'";
if u want to sort
dv.sort="Name ASC";

grid.datasource=dv;
grid.databind()

cheers
jeebu
 
thanks,

but I was wondering not about the query, but how to send the 'asc' or 'desc'
command to the query.


Jeebu said:
hi,
its possible.suppose ds is the name of the dataset.
create a view
dataview dv;
dv=ds.tables[0].defaultView;
dv.RowFilter="Name='joan'";
if u want to sort
dv.sort="Name ASC";

grid.datasource=dv;
grid.databind()

cheers
jeebu

TJS said:
Any examples or tips on how to add sorting to a repeater column header ?
 
hi,
after querying database store the result in a dataset and make a view on it
and apply filter

jeebu

TJS said:
thanks,

but I was wondering not about the query, but how to send the 'asc' or 'desc'
command to the query.


Jeebu said:
hi,
its possible.suppose ds is the name of the dataset.
create a view
dataview dv;
dv=ds.tables[0].defaultView;
dv.RowFilter="Name='joan'";
if u want to sort
dv.sort="Name ASC";

grid.datasource=dv;
grid.databind()

cheers
jeebu

TJS said:
Any examples or tips on how to add sorting to a repeater column header ?
 
Back
Top