Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Vincent So
  Where is Vincent So?
 Hong Kong
 Hong Kong
 Vincent So
 To: Ryss Unger
  Where is Ryss Unger?
 Cape Town
 South Africa
 Ryss Unger
 Tags
Subject: RE: Can I edit the field in a grid?
Thread ID: 359 Message ID: 398 # Views: 2 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Sunday, May 27, 2001 9:38:54 PM         
   


> > > 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
> Hi
> The question was posted as "RE: Can I edit the field in a grid?
> Keep saying "The result was I can't edit the form."
>
> Which is it can not edit the field when the form is running or can not edit the form in the developement enviro??
>
> Regards
> Ryss

Hi Ryss

It can not edit the field in both the form is running and in the development enviro.
I tried to do everything again and now it works.
Thank you very much for the suggestions from everybody.

Vincent So




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