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
70
question about column sized event
posted

when I tried code bellow I can not fire the event of column resize when adjust the columns width

UltraGridBand band = UltraGrid1.DisplayLayout.Bands[0];
band.UseRowLayout = true;

UltraGridColumn column = null;

RowLayoutColumnInfo info = null;

column = band.Columns["Column1"];

column.Header.Appearance.TextHAlign = HAlign.Center;

info = column.RowLayoutColumnInfo;

info.PreferredCellSize = new Size(1, 1);

info.MinimumCellSize = new Size(1, 1);

info.SpanX = 2;

info.SpanY = 1;

info.OriginX = 0;

info.OriginY = 0;


column = band.Columns["Column2"];

column.Header.Appearance.TextHAlign = HAlign.Center;

info = column.RowLayoutColumnInfo;

info.SpanX = 1;

info.SpanY = 1;

info.OriginX = 0;

info.OriginY = 1;


column = band.Columns["Column3"];

column.Header.Appearance.TextHAlign = HAlign.Center;

info = column.RowLayoutColumnInfo;

info.SpanX = 1;

info.SpanY = 1;

info.OriginX = 1;

info.OriginY = 1;

any good idea?  thanks in advance