cpopham Posted April 27, 2004 Posted April 27, 2004 I am binding a datagrid to a dataset. However my columns come out in alphebetical order instead of the order that I need them in. Example: The Column Headers are and in this order: POKey, POAGKey, Buyer, Vendor The order that shows up in my datagrid is: Buyer, POAGKey, POKey, Vendor Is there a way to sort these columns to match the original table in my database? Thanks Chester Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
Moderators Robby Posted April 27, 2004 Moderators Posted April 27, 2004 Either use the column names as part of your Select statement instead of using "Select * From" Or add the BoundColumns to the Columns Collection Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.