Shuxia Ning
2024-08-28 1a8a81785470302fc7fbd6914a9df5d1094dac2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using DevExpress.Utils;
using DevExpress.XtraGrid.Views.BandedGrid;
 
namespace IStation.Win
{
    /// <summary>
    /// BandedGridView拓展类
    /// </summary>
    public static class BandGridViewExtend
    {
        /// <summary>
        /// 设置bandView
        /// </summary>
        /// <param name="band"></param>
        public static void SetBandView(this BandedGridView band, int height = 28)
        {
            band.SetNormalView(height);
            band.BandPanelRowHeight = height;
            band.Appearance.BandPanel.TextOptions.HAlignment = HorzAlignment.Center;
        }
 
    }
}