Columns added in alphabetical order

3 posts, 0 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 15 Oct 2010 Link to this post

    Hi,

    When the grid uses AutoGenetatedColumns = true, it populates the grid with the properties in alphabetical order
    Is there a way to avoid this and let the order in which the properties are in the class ?

    Os is there a way to set an attribute on the property to make it a certain index ?

    Actually I have [DataMember] attribute on each property of course
    Thank for any hints on this
  2. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 17 Oct 2010 Link to this post

    The attribute order did work.
    [DataMember(Order = 9)]
  3. DevCraft banner
  4. Mikkel
    Mikkel avatar
    58 posts
    Member since:
    Aug 2012

    Posted 21 Dec 2011 Link to this post

    How did you get that to work, I tried the same, editing the service.metadata.cs, but it still sorts them alfabetically - rather annoying.

    I even tried reordering the attributes in the meta class, but that didn't work either...
Back to Top