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
765
AddNewRow Styling of filler column
posted

Hi,

Can I style the addnewrow area of the filler column separate from the rest of the columns?

Parents
No Data
Reply
  • 6912
    Verified Answer
    posted

    hi,

    In 2011.2 additional styling points will be expose for every column. Currently there is no easy way to do that.

    What you can do is:

     

    this.XGrid.InitializeRow += new EventHandler<InitializeRowEventArgs>(XGrid_InitializeRow);
    ...
    private void XGrid_InitializeRow(object sender, InitializeRowEventArgs e)
    {
        FillerColumn fillerColumn = e.Row.Columns.FillerColumn;
        AddNewRow addNewRow = ((RowsManager)e.Row.Manager).AddNewRowTop;
    
        if (fillerColumn != null && addNewRow != null && addNewRow.Tag == null)
        {
            CellBase cell = addNewRow.Cells[fillerColumn];
    
            cell.Style = (Style)this.Resources["YourCellStyle"];
            addNewRow.Tag = true;
        }
    }
    ...
    

    HTH

Children
No Data