Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting a datagrid
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Sorting a datagrid
Miscellaneous
Thread ID:
00903637
Message ID:
00903637
Views:
61
I need to sort a datatable / view on an expression.

In VFP you can use INDEX ON LEFT(ALLTRIM(Eartag),8)+RIGHT(ALLTRIM(Eartag),5)

I can sort the column using the following code.
this.AnimalsDt.DefaultView.Sort = "EarTag ASC" ;
How sort it using an expression using C#.

Thanks

John
Next
Reply
Map
View

Click here to load this message in the networking platform