when i am using RadGridView with Office2010Black
theme, and loading some data into, i got vertical scrollbar painted wrong. See the screenshot attached.
My grid initialization section:
radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
radGridView1.RowFormatting += radGridView1_RowFormatting;
radGridView1.VerticalScrollState = ScrollState.AlwaysShow;
radGridView1.DataSource = dataTable;
sender, RowFormattingEventArgs e)
e.RowElement.RowInfo.Height = 120;
When loading data, i have (according to requirements) to disable the Grid control first, and enable it as soon as data loaded.
Here is an example:
sender, EventArgs e)
Random rnd =
i = 0; i < rnd.Next(1000); i++)
DataRow row = dataTable.NewRow();
row = i + 1;
After doing so, i have wrong painting behavior of the vertical scrollbar (it is only so in Office 2010 black theme!!), as it shown on the screenshot. See second image, as it should be expected.
In addition, i have experinced that the scroller thumb does not update it's height immediately, according to the added rows count.
It will only redraw itself when user is dragging it or resizing control.
I have tried: radGridView1.Invalidate(), but it does not help.
So far workarounds are:
1) decorating code with BeginUpdate/EndUpdate does partially fix the problem, scrollbar thumb
does not change it's size
2) do not disable grid when loading data - works fine for me and even updates scrollbar thumb size, but i need to disable grid before doing data loading due to application requirements.