DataGridView

D

DaveL

Hi,
Lets Say i have 10 Rows in a GridView
and i have lots of open space on the window
another words the grid does not file my window with a grid empty rows..

How to if Fill the area when there are not enough rows to cover the canvas
area..
example:

window canvas is grey....
Datagridview is White
if i have 5 rows and 30 rows of space on the window
i have area of white and area of grey...
the size of the DataGridview is the full height of the window...but only
paints enough area for the rows available

Hope i explained that good enough
DaveL
 
C

Ciaran O''Donnell

I'm pretty sure you cant do this with a DataGridView without adding black
rows to the datasource. My best suggestion is to check the BackgroundColor to
SystemColors.Window so it is all white.
 

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

Top