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
685
AddRow Image Icon
posted

By default, the Add New row in a grid has a * in the column header.  How can I make that an image instead?  I've tried this,

grid.DisplayLayout.Bands[0].Override.AddRowAppearance.Image = Image.FromFile("./Images/AddGridRow.ico");

but it only kicks in once I start typing in a cell, and it shows up in the cell itself.

I want to use the image in the pic attached, but I don't want it on normal rows, I only want it on the Add New row.

Parents
No Data
Reply
  • 29105
    Verified Answer
    Offline posted

    Hello Sean, 

    Try using RowSelectorImages instead of the Bands, see the below:

    grid.DisplayLayout.RowSelectorImages.AddNewRowImage = Image.FromFile("./Images/AddGridRow.ico"); 

    grid.DisplayLayout.RowSelectorImages.ActiveAndAddNewRowImage = Image.FromFile("./Images/AddAndActiveGridRow.ico");

Children