Datagrid size ???

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
..
 
Back
Top