Completed
Last Updated: 12 Oct 2015 11:52 by ADMIN
ADMIN
Hristo
Created on: 29 Jun 2015 08:43
Category: GridView
Type: Bug Report
1
FIX. RadGridView - incorrect vertical scroll behavior when AutoSizeRows = true and you hide a column whose cells have mutliline text
How to reproduce:
public Form1()
{
    InitializeComponent();

    string newLine = "line";
    string multiLine = "line";
    for (int i = 0; i < 10; i++)
    {
        radGridView1.Rows.Add(newLine, multiLine);
        multiLine += Environment.NewLine + multiLine;
    }

   this.Load += Form1_Load;
}

Workaround: 
 private void Form1_Load(object sender, EventArgs e)
 {
     this.radGridView1.Columns[1].PropertyChanged += item_PropertyChanged;
 }

 private void item_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "IsVisible")
     {
        this.radGridView1.TableElement.ScrollTo(0, 0);
     }
 }

0 comments