row header text

35 posts, 0 answers
  1. Dess
    Admin
    Dess avatar
    1605 posts

    Posted 24 Nov 2014 Link to this post

    Hello Tim,

    Thank you for writing.

    You can get rid of the arrow image or apply a different image which indicates the current row by setting the RadGridView.TableElement.CurrentRowHeaderImage property to null or desired image.
    this.radGridView1.TableElement.CurrentRowHeaderImage = Properties.Resources.next;

    Additionally, you can assign a header row image to all cells by using the ViewCellFormatting event and setting the Image property to all GridRowHeaderCellElements

    I hope this information helps. Should you have further questions, I would be glad to help.Regards,
    Desislava
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  2. Tim
    Tim avatar
    8 posts
    Member since:
    Jul 2014

    Posted 25 Nov 2014 in reply to Dess Link to this post

    Hello Desislava,

    Thank you very much.  

    I resolved my problems, thanks again for your help.

    Best regards,
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Tim
    Tim avatar
    8 posts
    Member since:
    Jul 2014

    Posted 29 Nov 2014 in reply to Dess Link to this post

    Hello Desislava,

    I'm in need of your help again.


    I can apply a image to rowHeader or column[1] by CellClick or CellDoubleClick the current cell with your help, but it changes back when I Click other rows. How to add images to these cells what I clicked, just like the breakpoint of visual studio.

    Additionally, I add the SelfReference to two columns which are invisiable. How to change the position of column[0],  just before the column "Test Items Description ". 

    Thank you in advance.

    Best regards,
     
  5. Tim
    Tim avatar
    8 posts
    Member since:
    Jul 2014

    Posted 29 Nov 2014 in reply to Dess Link to this post

    post the imag of my application
  6. Dess
    Admin
    Dess avatar
    1605 posts

    Posted 03 Dec 2014 Link to this post

    Hello Tim,

    Thank you for writing back.

    The appropriate way to apply an image to a specific cell is to use the CellFormatting event. Thus, when a certain cell is clicked, you can store the GridViewRowInfo and the column name of the cell. Afterwards, in the CellFormatting event you can set the image for the specified cell belonging to this row and column. Due to the UI virtualization in RadGridView, cell elements are created only for currently visible cells and are being reused during operations like scrolling, filtering, grouping and so on.
    In order to prevent applying the formatting to other columns' cell elements (because of the cell reuse) all customization should be reset for the rest of the cell elements. Please refer to our Formatting Cells help article.

    As to the question related to columns position, you can have a look at our Reordering Columns help article.

    I hope this information helps. If you have any additional questions, please let me know.

    Regards,
    Desislava
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready