Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Dale Dedoroy
  Where is Dale Dedoroy?
 Bacolod City, Negros Occidental
 Dale Dedoroy
 To: Ryss Unger
  Where is Ryss Unger?
 Cape Town
 South Africa
 Ryss Unger
Subject: RE: Problem with my Grid
Thread ID: 591 Message ID: 605 # Views: 1 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Wednesday, June 06, 2001 9:54:28 PM         

> > > Hi Tony,
> > > What is the Sparse Property of the col. that contains the CheckBox? This may be the reason. If I remember correctly it has to be set to .F..
> > >
> > > Also ensure Contol source of CheckBox is same as rest of grid
> > >
> > > Regards
> > > Ryss
> >
> > Sparse is set to False and Controlsource is fine. I think what may be happening is that the checkbox in the grid is firing a paint event that possibly causes the child table to reset. Is this possible? If so, does anyone have a solution. Has anyone succesfully put a checkbox in a grid column for a child table in a one2many realtion?
> >
> > Thanks again,
> >
> > Tony
> Hi Tony,
> Well I took an existing grid and modified it to include a check box and it works fine.
> I used the grid builder to do this, sparse is set to .F. .
> The grid I did the ets on includes a variable relationship expression and a sequential search feature which uses the relational expression to trim the results in grid 2. Both work fine.
> Do you have any refresh or setfocus code which may be comming into efect?
> I will send you this (zipped) if you wish or you send me your form and table and I will have a look.As u prefer.
> Regards
> Ryss

Hi Tony,
First off, I advise that you let Ryss look into your grid. As an alternative, I usually create a container outside the form, place the checkbox into the container, cut the container and paste it under one of the columns of the grid. Modify the checkbox's properties as necessary.



Problem with my Grid Posted by Tony Berkman @ 6/6/2001 1:20:36 PM
RE: Problem with my Grid Posted by Ryss Unger @ 6/6/2001 2:35:09 PM
RE: Problem with my Grid Posted by Tony Berkman @ 6/6/2001 3:12:53 PM
RE: Problem with my Grid Posted by Ryss Unger @ 6/6/2001 4:20:41 PM
RE: Problem with my Grid Posted by Dale Dedoroy @ 6/6/2001 9:54:28 PM
RE: Problem with my Grid ... now solved Posted by Ryss Unger @ 6/7/2001 12:31:00 PM