0
class Base
{
  [Display(Order = 0)]
  public int FirstProp {get;set;}

  [Display(Order = 1)]
  publuc string SecondProp {get; set;}
}

class Derived : Base
{
  [Display(Order = 2)]
  public string ThridProp {get;set;}
}

I was expecting that the properties will have an order like this
| FirstProp | SecondProp | ThirdProp |

But I was getting like this
| ThridProp | FirstProp | SecondProp |

What was i missed?

BTW i was binding it in a gridview.

I will appreciate for any help will come.
Thank you

2
Contributors
3
Replies
23
Views
2 Years
Discussion Span
Last Post by Ketsuekiame
0

sorry but, setting order weights to negative has no success.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.