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
165
UltraGrid
posted

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;

GridBand.Columns[

"PersonalContact".MergedCellAppearance.TextVAlign= VAlign.Top;

GridBand.Columns[

"PersonalContact"].MergedCellAppearance.ImageVAlign = VAlign.Top;

GridBand.Columns[

"PersonalContact"].MergedCellEvaluator = new MergedCellEvaluator(new List<string> { "UserGroup","ContactName"."PersonalContact" });

 

Parents
  • 69832
    Offline posted

    Try this:

    UltraGridColumn column = this.ultraGrid.DisplayLayout.Bands[0].Columns["PersonalContact"];
    CheckEditor checkEditor = column.Editor as CheckEditor;
    checkEditor.CheckAlign = ContentAlignment.TopCenter;

Reply Children
No Data