|
Home > Archive > Programming with dBASE > March 2006 > How to disable certain columns in a grid?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to disable certain columns in a grid?
|
|
| Bosco Wilson 2006-03-05, 8:27 pm |
| I have a grid that is used to input information. The grid has 8 columns,
but I only want to allow the user to use two of them to enter data. After a
button is pressed, the remaining 6 columns are calculated from the two the
user used. Is there a way to "disable" editing on the other 6 columns? I
see the "FrozenColumn" property, but it only allows me to freeze one column,
not two. Thanks for any ideas.
Bosco
| |
| Todd Kreuter 2006-03-05, 8:27 pm |
| Bosco Wilson wrote:
>
> I have a grid that is used to input information. The grid has 8 columns,
> but I only want to allow the user to use two of them to enter data. After a
> button is pressed, the remaining 6 columns are calculated from the two the
> user used. Is there a way to "disable" editing on the other 6 columns? I
> see the "FrozenColumn" property, but it only allows me to freeze one column,
> not two. Thanks for any ideas.
You can set the readOnly property of the field dataLinked to the column
to false. That will prevent editing, but the user can still give focus
to the columns.
--
Todd Kreuter [dBVIPS]
| |
| Zagrijs Venter 2006-03-14, 3:23 am |
| I posted on 3 January 2006 a form on the dBase.Shared-Code NG under the
subject "Grid that allows only selected columns to be edited" which does
exactly what you want to do.
I was dissapointed in not receiving any feedback. May be you would have the
time to test it and let me know what you think.
Zagrijs
"Todd Kreuter" <tkreuter@dbvips.usa> wrote in message
news:44074906.4F7FF94@dbvips.usa...
> Bosco Wilson wrote:
>
> You can set the readOnly property of the field dataLinked to the column
> to false. That will prevent editing, but the user can still give focus
> to the columns.
>
> --
> Todd Kreuter [dBVIPS]
|
|
|
|
|