I have an application in asp.net web .net. this application have a collection of dogs and i can display this dog with specific criteria. For do this, i have one gridview bind to my dogs collection and i looking for how i can generate dynamically the order columns of my gridview using databinding.
Asked
Active
Viewed 2,740 times
0
-
Which brings up the question: What have you tried so far ? – phadaphunk Jun 17 '13 at 14:50
-
i have try to bind the columns attribute but it's impossible. i try to bind dynamically property of datafield,headertext of boundfield but it's impossible too. So i try to find a way with bind ColumnsGenerator for the moment – Gat Jun 17 '13 at 14:56
-
This answer might help you : http://stackoverflow.com/a/28611217/215752 – Hogan Feb 19 '15 at 17:03
1 Answers
0
This looks like a duplicate of this question. The answer looks like it would help you: How to reorder columns in gridview dynamically
You can use the InsertAt
, Remove
and CloneFields
methods of Gridview.Columns
to help you reorder columns.
-
If this is a duplicate question, please kindly flag it as **duplicate**. They'll vote to close it. – Win Jun 17 '13 at 15:00