Newbie question.

  • Thread starter Thread starter bredal Jensen
  • Start date Start date
B

bredal Jensen

Hello gurus,

I need to sort the elements in my datagrid .
i want them to appear the newest first (by entry date).
How can i achive this.




i added this :"ORDER BY entry_date DESC" after my "select * from xTable
where id=@id" .


Shouldn't that work?

Many thanks in advance
 
Hi Bredal,

However that your solution work, is in my opinion the easiest way to use the
dataview.

\\\
dim dv as new dataview(xTable)
dv.sort = "entry_date DESC"
mycontrol.datasource = dv
////
I hope this was what you was looking for?

Co
 

Ask a Question

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.

Ask a Question

Back
Top