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
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);
The vertical scrolling in the grid is row-based. It scrolls one row at a time. You cannot scroll part of a row, so there's no way to do what you are trying to do here.