Completed
Last Updated: 14 Oct 2015 08:30 by ADMIN
ADMIN
Hristo
Created on: 01 Oct 2015 13:18
Category: GridView
Type: Bug Report
1
FIX. RadGridView - if a column with large content is hidden and AutoSizeRows property of the grid is set to true, the printed rows` height is incorrect and calculated also according to the hidden con
Workaround: before printing set the AutoSizeRows = false, then you can set it again to true

private void radButton1_Click(object sender, EventArgs e)
        {
            if (!this.radGridView1.Columns["ImageColumn"].IsVisible)
            {
                int height = this.radGridView1.TableElement.ViewTemplate.Rows[0].Height;
                this.radGridView1.AutoSizeRows = false;
                this.radGridView1.TableElement.RowHeight = height;
            }

            this.radGridView1.PrintPreview();
            this.radGridView1.AutoSizeRows = true;           
        }
0 comments