Re: Row and Col property of MSHFlexGrid
- From: "Ella" <ellakayeekwan@xxxxxxxxx>
- Date: 7 Apr 2006 13:59:48 -0700
Hi Ken,
I found that both grids have the same problem if I bind the grid with
an empty recordset by
Set grid.Datasource = oRs
When I reset the datasource to a recordset with records, I get the
problems.
Now I check for EOF and BOF like:
If oRs.EOF And oRs.BOF Then
MsgBox "EMPTY"
Set grid2.DataSource = Nothing
' Don't know how to make the grid empty, so no entries display on
screen.
Else
Set grid2.DataSource = oRs
grid2.ColAlignment = flexAlignRightCenter
End If
However, I don't know how to make the grid empty, so no entries display
on screen. Do you know how?
I try to search around the internet. Look like some people also have
problem when setting a grid to an empty recordset. There problems
different since they are not doing the same things. However, I can't
find a solution.
I saw something about the TopRow porperty. I tried by hardcoding the
grid2.TopRow = 30 where grid2 is now containing 30 rows....But it
doen't work. I also tried Refresh doesn't make any difference. I don't
how to use these properties or methods. I don't know how to make it
display no row except the heading.
Thanks,
Ella
.
- Follow-Ups:
- Re: Row and Col property of MSHFlexGrid
- From: Ken Halter
- Re: Row and Col property of MSHFlexGrid
- References:
- Row and Col property of MSHFlexGrid
- From: Ella
- Re: Row and Col property of MSHFlexGrid
- From: Ken Halter
- Re: Row and Col property of MSHFlexGrid
- From: Ella
- Re: Row and Col property of MSHFlexGrid
- From: Ken Halter
- Row and Col property of MSHFlexGrid
- Prev by Date: Re: Row and Col property of MSHFlexGrid
- Next by Date: Re: DateTimePicker and restricting dates
- Previous by thread: Re: Row and Col property of MSHFlexGrid
- Next by thread: Re: Row and Col property of MSHFlexGrid
- Index(es):
Relevant Pages
|