Completed
Last Updated: 07 Mar 2016 10:05 by ADMIN
ADMIN
Hristo
Created on: 13 Nov 2015 12:20
Category: GridView
Type: Bug Report
2
FIX. RadGridView - incorrect position of the vertical scrollbar when the grid is scrolled using the PageDown key
Workaround:

public Form1()
{
    InitializeComponent();

    this.radGridView1.TableElement.VScrollBar.ValueChanged += VScrollBar_ValueChanged;
}

private void VScrollBar_ValueChanged(object sender, EventArgs e)
{
            int maxValue = this.radGridView1.TableElement.VScrollBar.Maximum - this.radGridView1.TableElement.VScrollBar.LargeChange;
            if (maxValue < 0)
            {
                this.radGridView1.TableElement.VScrollBar.Value = 0;
            }
            else if (this.radGridView1.TableElement.VScrollBar.Value > maxValue)
            {
                this.radGridView1.TableElement.VScrollBar.Value = maxValue;
            }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments