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";
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 ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.