AllowSort in Datagrid

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi Everyone

I have a table with 3 columns of integer type. If I want to sort a column in
ascending order programmatically (as if user clicks on the header of that
column) , how do I do it? Actually, is it possible?

Many thanks in advance

Sam
 
Sam,

This shortway I never tested, however should go.

\\\
mydatatable.defaultview.sort = "NameOfMyColumn3 ASC"
////
(When it does not reply, than I show it in a longer syntax)

I hope this helps?

Cor
 
Let me try it. Thanks Cor

Sam


Cor Ligthert said:
Sam,

This shortway I never tested, however should go.

\\\
mydatatable.defaultview.sort = "NameOfMyColumn3 ASC"
////
(When it does not reply, than I show it in a longer syntax)

I hope this helps?

Cor
 

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