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
955
How to let the data be centered in the cell after merging the rows in the ultragrid?
posted

 

 I have set the MergedCellStyle of the ultragrid,but after merging the data is not displayed in the center of the merged cell, How to let the data be centered in the merged cell ?

Parents
No Data
Reply
  • 469350
    Offline posted


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridOverride ov = layout.Override;

                ov.HeaderClickAction = HeaderClickAction.SortMulti;
                ov.MergedCellStyle = MergedCellStyle.OnlyWhenSorted;
                ov.MergedCellAppearance.TextVAlign = VAlign.Middle;
            }

Children