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
115
RowLayout & vertical scrollbar
posted

Hi,

I'm using a UltraGrid only one row bound in it. The current Band has UseRowLayout = true. In the current layout I can arrange each column one bellow the other. The issue is, there is no vertical scrollbar, when the height of the current row exceeds the height of the visible area of the grid.

Interesting is the fact, when I bound 2 row the vertical scrollbar works properly, is visible or hidden depending by the height of the rows.

Thank you,

razvann

 

Parents
  • 115
    posted

    it seems the above behavior is the same also for regular UltraGrid, without using a RowLayout, So I wrote a simple test method which creates a newly UltraGrid and bind only one row. There is no vertical scrollbar when resizing the grid to hide some area of the bound row.

    DataTable table = new DataTable();
    table.Columns.Add(new DataColumn("Name", typeof(String)));
    table.Columns.Add(new DataColumn("Value", typeof(int)));

    for (int i = 0; i < 1; i++)
    {
        DataRow row = table.NewRow();

        row["Name"] = "Name" + i.ToString();
        row["Value"] = i;                
        table.Rows.Add(row);
    }           

    UltraGrid mPrintGrid = new UltraGrid();
                           
    mPrintGrid.Parent = new Form();
    mPrintGrid.DataSource = table;

    mPrintGrid.Dock = DockStyle.Fill;
    this.Controls.Add(mPrintGrid);

Reply Children