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?
ThanksSteve
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; }