Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 To: Vincent So
  Where is Vincent So?
 Hong Kong
 Hong Kong
 Vincent So
 Tags
Subject: RE: Can I edit the field in a grid?
Thread ID: 359 Message ID: 363 # Views: 3 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Friday, May 25, 2001 3:36:03 AM         
   


> I went through the attributes of grid->Columns and Textboxes and found the Enable is set to .T. and ReadOnly is set to .F. by default. In addition, ControlSource of each column of the grid contains exactly 'MyTableName.FieldName' but I still can't edit the field from the grid directly.
> I remember the steps to create the grid was create a form, from the tool box, I select grid, after that, I right click the grid and select 'Builder...' to enter the grid builder, from there, I finished the Grid Items, Layout and select OK. The result was I can't edit the form.
>
> Thanks for all your suggestions anyway..
>
> Vincent So

Check the table: is it readonly (you can see this in the dataenvironment), is it a readonly view/sql query? To be 100% sure that the grids readonly properties are .F., open the form in the form designer. From the command window, issue _vfp.forms(1).grid1.setall("Readonly", .F.). You may have to change grid1 to the name that your grid has.

----------------
Hth,

Eric den Doop
www.foxite.com

ENTIRE THREAD

Can I edit the field in a grid? Posted by Vincent So @ 5/24/2001 8:11:30 PM
RE: Can I edit the field in a grid? Posted by Dale Dedoroy @ 5/24/2001 9:15:09 PM
RE: Can I edit the field in a grid? Posted by Erik Gomez @ 5/24/2001 11:44:31 PM
RE: Can I edit the field in a grid? Posted by Vincent So @ 5/25/2001 2:59:35 AM
RE: Can I edit the field in a grid? Posted by Eric den Doop @ 5/25/2001 3:36:03 AM
RE: Can I edit the field in a grid? Posted by Ryss Unger @ 5/25/2001 2:44:37 PM
RE: Can I edit the field in a grid? Posted by Vincent So @ 5/27/2001 9:38:54 PM