0

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.

svick
  • 236,525
  • 50
  • 385
  • 514
Gat
  • 115
  • 3
  • 11
  • 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 Answers1

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.

Community
  • 1
  • 1
alergy
  • 974
  • 1
  • 14
  • 28
  • 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