Hello!
I'm using UltraGrid v.92 with merging on some of the columns. I'm setting the MergedCellEvaluator on given colums. I have problems in setting the vertical alignment to top for checkboxes. When rendered the checkbox is aligned in the middle of the merged cells. For string columns it works fine.
This is how the code looks like.
GridBand.Columns[
"PersonalContact"].MergedCellStyle = MergedCellStyle.Always;
"PersonalContact".MergedCellAppearance.TextVAlign= VAlign.Top;
"PersonalContact"].MergedCellAppearance.ImageVAlign = VAlign.Top;
"PersonalContact"].MergedCellEvaluator = new MergedCellEvaluator(new List<string> { "UserGroup","ContactName"."PersonalContact" });
Try this:
UltraGridColumn column = this.ultraGrid.DisplayLayout.Bands[0].Columns["PersonalContact"];CheckEditor checkEditor = column.Editor as CheckEditor;checkEditor.CheckAlign = ContentAlignment.TopCenter;
Yes that worked. Thank you