Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: onytoo
  Where is onytoo?
 Padang
 Indonesia
 onytoo
 To: dragon 5
  Where is dragon 5?
 Johor
 Malaysia
 dragon 5
 Tags
Subject: RE: Fail to set grid layout?
Thread ID: 289386 Message ID: 289392 # Views: 57 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Friday, December 31, 2010 12:48:40 PM         
   


> Dear all,
>
> I was select some record into cursor, cur_Product and put it into the grid, gridProduct.
>
> In my form, I had a tab, and the grid is inside the tab.
>
> 1.First I was set the layout in the PEM. But in the PEM, the recordsource that I was set to the cur_Product for the gridProduct was blank? Why?
>
> 2. When I set the gridProduct layout for its header and width in the PEM, but it does not display as what I had set? why? So, how to make it always be the layout I was set?
>
> Thanks.

*!* form Init
SELECT * FROM Products INTO CURSOR cur_Product
WITH thisform.PageFrame1.Page1.gridProduct
  .RecordSource = [cur_Product]
  .ColumnCount = 2
  .Column1.ControlSource = [cur_Product.id]
  .Column1.Width = 100
  .Column1.Header1.Caption = [Product ID]
  .Column2.ControlSource = [cur_Product.name]
  .Column2.Width = 200
  .Column2.Header1.Caption = [Product Name]
ENDWITH


Regards,
Onytoo

ENTIRE THREAD

Fail to set grid layout? Posted by dragon 5 @ 12/31/2010 11:42:18 AM
RE: Fail to set grid layout? Posted by Ony Too @ 12/31/2010 12:48:40 PM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/1/2011 5:22:58 AM
RE: Fail to set grid layout? Posted by Samir H. @ 1/1/2011 5:55:32 AM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/1/2011 8:16:01 AM
RE: Fail to set grid layout? Posted by Samir H. @ 1/1/2011 9:02:04 AM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/5/2011 1:08:24 PM
RE: Fail to set grid layout? Posted by Jun Tangunan @ 1/6/2011 1:42:38 AM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/6/2011 11:05:49 AM
RE: Fail to set grid layout? Posted by Jun Tangunan @ 1/6/2011 11:42:37 PM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/7/2011 11:37:55 AM
RE: Fail to set grid layout? Posted by Ony Too @ 1/1/2011 6:34:55 AM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/1/2011 8:19:30 AM
RE: Fail to set grid layout? Posted by Ony Too @ 1/1/2011 1:52:23 PM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/5/2011 1:14:09 PM
RE: Fail to set grid layout? Posted by Ony Too @ 1/5/2011 8:12:00 PM
RE: Fail to set grid layout? Posted by Jun Tangunan @ 1/6/2011 1:08:59 AM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/7/2011 11:38:11 AM
RE: Fail to set grid layout? Posted by Jun Tangunan @ 1/7/2011 11:57:16 PM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/8/2011 9:58:24 AM
RE: Fail to set grid layout? Posted by Ony Too @ 1/7/2011 1:02:01 AM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/7/2011 11:40:47 AM
RE: Fail to set grid layout? Posted by dragon 5 @ 1/8/2011 10:14:17 AM