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
125
PerformAutoResize with image in column header
posted

Hi

My column sizes (widths) were working just fine until I decided to add an image in the column header (along with the caption in the column header - so I have both an image and text in the header).

Even after running PerformAutoResize on every column (see below), it looks like the column size is too small, it looks like its not taking into account the image size (and just making the column wide enough to account for the text). Since the image is on the left, the image is visible, but the text is cut off.

foreach (UltraGridColumn column in band.Columns)
{
column.PerformAutoResize(
PerformAutoSizeType.AllRowsInBand, true);
}

Also, here are the only real settings I have on the columns with the images:
Header.Appearance.TextHAlign = HAlign.Center;
Header.Appearance.Image = 'image from Resources'

Thanks for your help 

 

Parents
No Data
Reply
  • 469350
    Offline posted

    I tested this out and it works fine for me. What version of the controls are you using?

    Does it work if you double-click on the right edge of the column header? 

    Are you calling PerformAutoSize after you have applied the image? 

     

     

Children
No Data