2
Contributors
2
Replies
10
Views
4 Years
Discussion Span
Last Post by GeekPlease
0

Try this:

yDTable.Columns("IndexChangeColName").SetOrdinal(IndexYouWantingToChangeTo)

I'm not sure about this, but this will change the position of your column and is there're multiple columns to change - like n columns, etc... - you must use this line n times to change all the columns' position.

yDTable.Columns("IndexChangeColName(1)").SetOrdinal(IndexYouWantingToChangeTo(1))
....
yDTable.Columns("IndexChangeColName(n)").SetOrdinal(IndexYouWantingToChangeTo(n))
0

Thanksk Eternal newbie C:

After Googleing, I just saw a solution that look like the same as yours, but still I appreciate your help.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.