Use Attribut for HeaderText with AutoGenerateColumns

6 posts, 1 answers
  1. Emmanuel
    Emmanuel avatar
    9 posts
    Member since:
    Feb 2012

    Posted 27 Apr Link to this post

    Hello,

    I would like use attribut to rename headercolum with AutoGenerateColumns .

    Like :

    [Description("Employ Number")]

    public int EmployeeId { get; set; }

    Possible ?

    thank you

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 27 Apr Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Emmanuel
    Emmanuel avatar
    9 posts
    Member since:
    Feb 2012

    Posted 27 Apr in reply to Dimitar Link to this post

    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

     

  5. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 28 Apr Link to this post

    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.
  6. Emmanuel
    Emmanuel avatar
    9 posts
    Member since:
    Feb 2012

    Posted 29 Apr in reply to Dimitar Link to this post

    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 ?

     

  7. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 02 May Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready