Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with MSFlexGrid

Status
Not open for further replies.

mensudb

Programmer
Sep 2, 2004
13
US
Hi,

I am using MSFlexGrid (6 I think) and when the grid is appeared for the first time, everything is ok. I am able to select any cell. Also,I am using an "Click" event of this control, to keep info about clicked cell. The code is:
with thisform.testgrid
thisform.rownum=.mouserow
thisform.colnum=.mousecol
endwith

These two properties are used to retrieve a text from a cell. And this part also works fine.
In some point in code, I am calling another form, which is used to print ASP page from web server. When I am finished with printing, I can't go back on this grid. I mean, I can't select any cell on the grid. It looks like the grid have lost focus, and I can't do anything with grid.

I tried to refresh the whole screen, does not work. Also, setting focus ont he grid after I close second form, does not halp.

Any suggestion ?

Thanks in advance

Mensud
 
I figured it out. The second form was modeless, and even when it was destroyed, I did not get the focus on grid. So, the form is now modal, and works quite well.

Mensud
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top