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: Erik Gomez
  Where is Erik Gomez?
 Victorias City, Negros Occidental
 Philippines
 Erik Gomez
 Tags
Subject: RE: Can I edit the field in a grid?
Thread ID: 359 Message ID: 362 # Views: 3 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Friday, May 25, 2001 2:59:35 AM         
   


> > > I have a form with a grid, created by the form builder and I want to allow 'Edit' in the grid. However, it seems I am allowed to do it because I was displayed 'This record is read only' when I tried to change the information of a field in the grid. I did not change any value of the property in the grid becuase it is beyond my means to do it but I found out the ReadOnly property of the Grid has already set to .F. by default. How can I make change in the Grid like in the browse windows?
> > >
> > > Thanks.
> >
> > Hi,
> > Drill down to grid's objects. Columns have their own ReadOnly attributes. Also, column's currentobjects such as textboxes, combo boxes, etc. Each one has its ReadOnly attributes. Check those.
> >
> > Hth,
> > Dale
> In additon to Dale's suggestions, check also the ControlSource of each column of the grid it should contain 'MyTableName.FieldName'
>
> hth,
>
> Erik Gomez

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


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