Re: Row and Col property of MSHFlexGrid
- From: "Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 6 Apr 2006 13:46:42 -0700
"Ella" <ellakayeekwan@xxxxxxxxx> wrote in message
news:1144355750.118709.150950@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi everyone,
I have posted this problem before. However, nobody answer. I want to
try again. Hope someone can help.
Below is the explaination of my problem:
I cannot trigger the RowColChange event when clicking on the first row
on the grid.
Is that first row a Fixed row? If so, use the MouseRow and MouseCol
properties.
'=====
Option Explicit
Private Sub Form_Load()
MSHFlexGrid1.FocusRect = flexFocusHeavy 'Thick focus rectangle
End Sub
Private Sub MSHFlexGrid1_Click()
With MSHFlexGrid1
Debug.Print .Row, .Col, .MouseRow, .MouseCol
End With
End Sub
'=====
When the application is loaded, the DataSource of both grids is set .
For the first table, if I click on the first row, no dialog pops up.
Click the second rows, it works. Click the first row again, it works.
Add some Debug.Print s to help you diagnose the problem.
For the second table, if I click on the either the first or second
rows, no dialog pop up. If I click on the third, dialog pops up with
the "data" of the second row. If I click the fourth row, I get the
second row data. Now, I can click on the second row to get the first
row data. However, if I click the scroll bar, everything works
correctly. First row is first row. Second row is second.
I wouldn't know where to start when it comes to trying to reproduce that
problem here. Debug.Print everywhere.
Also in one of the grid, I don't see the "square" on the active cell
See the grids FocusRect property
displayed on the grid. Why is that? How to set the default "square" to
a specific place?
Set the grids Row and Col properties. When the grid has focus, that square
should show up.
Thank you very much
Ella
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
.
- Follow-Ups:
- Re: Row and Col property of MSHFlexGrid
- From: Ella
- Re: Row and Col property of MSHFlexGrid
- References:
- Row and Col property of MSHFlexGrid
- From: Ella
- Row and Col property of MSHFlexGrid
- Prev by Date: Row and Col property of MSHFlexGrid
- Next by Date: Re: Row and Col property of MSHFlexGrid
- Previous by thread: Row and Col property of MSHFlexGrid
- Next by thread: Re: Row and Col property of MSHFlexGrid
- Index(es):
Relevant Pages
|