Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Painting issues while horizontal scrolling when changing extended window styles

$
0
0

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


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>