Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Russell Hill
  Where is Russell Hill?
 Sydney
 Australia
 Russell Hill
 To: Rahul Moudgill
  Where is Rahul Moudgill?
 Toronto
 Canada
 Rahul Moudgill
 Tags
Subject: RE: Backcolor in a Grid
Thread ID: 268861 Message ID: 268881 # Views: 33 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Thursday, July 15, 2010 7:58:15 AM         
   


> > Hi all,
> >
> > I have a Calendar that is based on a Grid obect.
> >
> > The Grid has 6 rows and 7 columns.
> >
> > I've locked it into a Grid-driven system of related data.
> >
> > When I select a date in the Calendar the appearance of the selected cell (which, as far as I can tell, is determined by the Text1.SelectedBackColor property of the Column object) is fine if there is no data detected (see below).
> >
> >
> >
> > I have bound a method to Text1.Click of all the columns that executes a query using SQL (populating each of the related Grids) when there is data detected.
> >
> > The problem is that the selected cell in the Calendar is no longer highlighted (see below) when there IS data detected. I think this is simply because the Grid has lost focus, whereas it hasn't in the situation where no data is detected.
> >
> >
> >
> > Does anyone have any suggestions as to how I would get the highlight to remain even in the case where SQL is executed? I need the RHS Grid to have focus (it's .AfterRowColChange method drives another Grid lower down) so the simple solution of returning focus to the Calendar Grid is no good to me.
> >
> > Any suggestions would be appreciated.
> >
> > Thanks,
> >
> > Russell.
>
> Use DynamicBackColor Property
> 

> Rahul

Thanks Rahul but I've tried that in a number of ways already without success.

Can you be a little more explicit if you have something particular in mind?

ENTIRE THREAD

Backcolor in a Grid Posted by Russell Hill @ 7/15/2010 4:50:58 AM
RE: Backcolor in a Grid Posted by Rahul Maudgill @ 7/15/2010 6:15:39 AM
RE: Backcolor in a Grid Posted by Russell Hill @ 7/15/2010 7:58:15 AM
RE: Backcolor in a Grid Posted by Rahul Maudgill @ 7/15/2010 11:59:28 AM
RE: Backcolor in a Grid Posted by Russell Hill @ 7/15/2010 1:43:08 PM
RE: Backcolor in a Grid Posted by Chris Chamberlain @ 7/15/2010 9:42:34 AM
RE: Backcolor in a Grid Posted by Russell Hill @ 7/15/2010 11:31:11 AM
RE: Backcolor in a Grid Posted by Cetin Basoz @ 7/15/2010 11:44:08 AM
RE: Backcolor in a Grid Posted by Russell Hill @ 7/15/2010 1:45:27 PM