Click here to Skip to main content
15,895,813 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set index position of dynamicaly added column in grid view
Posted
Comments
Aditya Mangipudi 6-Aug-12 9:12am    
Can you show us some code here? I am not able to understand the context.
Kschuler 6-Aug-12 14:00pm    
Good thought. You should post this as a solution instead of just a comment.

I have seen "ordinal" being used to swop columns around.

C#
dataColumnName.SetOrdinal(5);


http://msdn.microsoft.com/en-us/library/system.data.datacolumn.setordinal.aspx[^]
 
Share this answer
 
Comments
Maria Norbert 21-Jul-14 1:56am    
Can you Explain in Detail please...

i have set autogenerate property to true..
and also i am generating two link button columns for approve and reject..

Now the two link buttons coming in first column of grid.. i need those columns to be last.

Kindly Guide me..!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900