Painting issues while horizontal scrolling when changing extended window styles

  • Thread starter Thread starter Amal Raj U
  • Start date Start date
A

Amal Raj U

Guest
Hi All,

I have a instance of DataGridView in my form and overridden the CreateParams method and changed the extended window styles as below,

protected override CreateParams CreateParams
{
get
{
CreateParams Param = base.CreateParams;
Param.ExStyle |= 0x02000000;
return Param;
}
}


When i make any cell in half of the grid and scroll using Horizontal scrollbar in the grid, it shows some painting or redrawing issues while scrolling. Scrolling works normal if i dont change the extended window styles.


Could someone please update us, what is the cause of this repainting while scrolling the grid?

Thanks and Regards,


Amal Raj U

Continue reading...
 
Back
Top