Palette with DataGridView

Palette with DataGridView

dennis
Advisor Advisor
658 Views
2 Replies
Message 1 of 3

Palette with DataGridView

dennis
Advisor
Advisor

I will try to explain what is happening without posting code, hopefully enough to get an idea as to what to do.

I have a custom palette set with one palette.  Think in comparison to the Xref Mgr.

The lower section is the Details (like the Xref Mgr), and I populate a DataGridView via a DataTable as the source.

When I first launch the palette, the DataGridView is transparent revealing the graphics in the drawing underneath it.  I can click around and it will refresh the Details.

Another thing, in that same Details DataGridView, if I use the horizontal scroll bar, the read out actually garbles up.  Similar effect if I stretch the palette.  I can then again, click around and it clears up.

Any suggestions would be appreciated.

0 Likes
Accepted solutions (1)
659 Views
2 Replies
Replies (2)
Message 2 of 3

CADbloke
Advocate
Advocate
WPF or Winforms? Got any code to show us?
- - - - - - -
working on all sorts of things including www.tvCAD.tv & www.CADreplace.com
Message 3 of 3

dennis
Advisor
Advisor
Accepted solution

I worked out the problem.  I was setting the background color via code, so I thought to set it instead in the CellStyle.  Once I removed the code setting and used the CellStyle instead, the anomaly went away.

0 Likes