This is a migrated thread and some comments may be shown as answers.

Use Attribut for HeaderText with AutoGenerateColumns

5 Answers 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Emmanuel
Top achievements
Rank 1
Emmanuel asked on 27 Apr 2016, 09:34 AM

Hello,

I would like use attribut to rename headercolum with AutoGenerateColumns .

Like :

[Description("Employ Number")]

public int EmployeeId { get; set; }

Possible ?

thank you

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 27 Apr 2016, 12:18 PM
Hello Emmanuel,

Thank you for writing.

You can use the following attribute:
[DisplayName("family name")]
public string LastName
{
    get;
    set;
}

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Emmanuel
Top achievements
Rank 1
answered on 27 Apr 2016, 12:24 PM

Thankyou, yes another question :

Is a events firing when datagridview finished to displaying row ?

The DataBindingComplete firing early if we bind a class with a property with complex perform

 

0
Dimitar
Telerik team
answered on 28 Apr 2016, 07:28 AM
Hello  Emmanuel,

Thank you for writing back.

There is no event which is fired after DataBindingComplete. Could you please specify what exactly you want to do with such event? Perhaps we will be able to suggest another approach?

I am looking forward to your reply.

Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Emmanuel
Top achievements
Rank 1
answered on 29 Apr 2016, 05:48 AM

OK I reset.

I had issue with performance but I think it's not grirdview.

I used LinqtoSQL with storedProcedure.

I get IEnumerable object (9000 rows and 10 fieds), it's faster

But when I Put the result to RadGridView.DataSource that take more 60 seconde !

I tested with transform IEnumerable -> ToList , it's the problem.

Have you a solution ?

 

0
Dimitar
Telerik team
answered on 02 May 2016, 11:39 AM
Hi Emmanuel,

Thank you for writing back.

I have tested this locally and such amount of data is loaded for less than a second on my side. I am getting the same results when testing with IEnumerable and List. This is why I have attached my test project. Could you please check it and let me know what I need to change in order to reproduce the issue on my side?

I wanted to ask which is the current version that you are using as well?

I am looking forward to your reply.

Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Emmanuel
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Emmanuel
Top achievements
Rank 1
Share this question
or