Question Datagridview's column position at nun time

prasad kulkarni

Well-known member
Joined
Sep 7, 2009
Messages
62
Programming Experience
1-3
hi,

I add datagridview column at run time. How to set column
at particular position in datagridview .

eg. datagridview.column(5) or datagridview.column(8) etc

if any one know,reply me soon.
 
DataGridViewColumnCollection.Insert method: Inserts a column at the given index in the collection.
(DataGridView.Columns property returns the DataGridViewColumnCollection)

DataGridViewColum.DisplayIndex property: Gets or sets the display order of the column relative to the currently displayed columns.
 
Back
Top