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
Another option would be to use the DisplayName attribute.
For example, let's say I'm displaying a List(of Users) in my ultragrid.
List(of Users)
Public Property FirstNamePublic Property LastNamePublic 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! :)
Thanks Boris
It worked.
Hello Jeni, I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Hello Jeni,
Did you try the Column.Header.Caption string property for this? I am sure it works. If you wish I could put it in a small sample to demonstrate that all is fine with the column header. Or maybe you could post a sample project reproducing this issue.