> > > 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