Grid redraw problems


G

Guest

I am hoping that you guys can help me out with this one, been looking all
over the place but can't find a solution.
I have a datagrid on my CF VB.Net app that displays what I want. I have more
columns that I can see on the screen so I scroll sideways. My problem is that
when I scroll back, there is like like garbage left behind. How do I get the
datagrid to auto-redraw?
HELP!!!
 
Ad

Advertisements

R

rodeo rider

are you using a style set to format the grid columns? if so, you can force
a Redraw by changing any of the column widths after the grid is displayed.
use code to change the width of any column by 1 and then then by -1 to keep
it at the original value. this is the method i used to force the grid
scroll bars to stop overlaying each other when initially displayed.
 
Ad

Advertisements

G

Guest

Yes I am using a style set. I am not sure I get what you mean. Where would I
do the change of width? When the grid first draws it is ok, it is not until I
scroll sideways that I see the grid getting messed up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DataGrid redraw problem? 1
Slider Control and redrawing problems. 0
Flicker on redrawing 1
ListBox redraw 1
e.Graphics.DrawImage don't redraws 1
Slow screen redraw 2
Grid 1
Grid 3

Top