Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1310
User defined headers in WinGrid
posted

Hello

How to mention the header for the columns in grid, of our choice. I changed the Property Header, still it shows the same column names from the database to which it is bound.

Any help on this is much obliged.

Regards

Jeni

Parents
No Data
Reply
  • 610
    Offline posted

    Another option would be to use the DisplayName attribute.

    For example, let's say I'm displaying a List(of Users) in my ultragrid.

    Public Property FirstName
    Public Property LastName
    Public Property Email

    But what if I want "First Name" and "Last Name" for my column names? Simply use the DisplayName attribute....

    <DisplayName("First Name")>
    Public Property FirstName 
    ...

    Voila! :) 

     

Children
No Data