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
200
Checkbox not aligning Top
posted

In my grid I have two columns that have checkboxes.  For some reason I can’t seem to get those checkboxes to align at the Top.  For all other columns this seems to be working fine.  This includes cells that have Images, text and links.  Is there something I am missing to get the Checkboxes to align Top?

Thanks
Steve

  • 469350
    Verified Answer
    Offline posted

    Hi Steve,

    You have to use an editor in order to align checkboxes vertically in the grid.You can use the same editor for all of your checkbox columns, though. You don't need a separate editor for each column.


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridBand band = layout.Bands[0];


                CheckEditor checkEditor = new CheckEditor();
                checkEditor.CheckAlign = ContentAlignment.TopCenter;
                band.Columns["Boolean 1"].Editor = checkEditor;
                band.Columns["Boolean 2"].Editor = checkEditor;
            }