Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datatable Select - Using convert() ?

Status
Not open for further replies.

rico14d

Programmer
Apr 8, 2002
135
0
0
GB
Hi,

I have a datatable which i need to order numerically.
However, even though the column contains numeric data, it is a string datatype.

Can i use a convert() in the order parameter? Ive tried the below code but it didnt work.

Code:
drChildMenus = dtMenus.Select("Menu = 1", "convert(int,OrderCol)")

Any other ideas?

Thanks,
Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top