Datagrid size ???

G

Guest

Dear all,

I have a datagrid control on a windows form which is split in two
horizontale area.
My datagrid has the dock.Fill property in order that its size is occupied
the full area

Then When no records in the grid , I see only the header. No problem so far
Then when there is 2 recors in, I see the two rows + one empty row becasue
my grid has the Readonly property set to true.

At this point, the remaining part of the grid is gray, is there a way to
extend the datgrid row to fill until the bootom of my form event if there are
nor recors ?

Thnaks for your help
regard
serge
 
C

Cor Ligthert

Serge,

In the way as I understand it from you. You cannot create a lot of empty
lines.

With a lot of work it is possible while measuring the height of the
datagrid, however than you cannot dock it. You see the background from the
form than again.

Probably your users will never notice it by the way when you have now your
grid docked that you have done a lot of work from them not showing that grey
background of the datagrid.

Just my thought,

Cor
..
 

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