|
| GRID & Grid cells |
 |
Tue, 15 Apr 2008 05:44:56 -040 |
Hello,
For a clic on a Grid I know : which Row, which Column are aimed at.
How can I prevent the user to update a cell according to it's Row/Column
I want to have cells updatable and clls protected
I'm looking for something like "When = {;return false}" or enabled =
false.
I didn't find anything in the editorcontrol.
Can someone advise?
|
| Post Reply
|
| Re: GRID & Grid cells |
 |
Tue, 15 Apr 2008 12:31:45 +020 |
Michel PAIN wrote
> Hello,
> For a clic on a Grid I know : which Row, which Column are aimed at.
> How can I prevent the user to update a cell according to it's Row/Column
> I want to have cells updatable and clls protected
> I'm looking for something like "When = {;return false}" or
enabled =
> false.
> I didn't find anything in the editorcontrol.
---------
To make a grid cell readonly you can set the
rowset.fields["FieldName"].readOnly property to false.
Roland
|
| Post Reply
|
| Re: GRID & Grid cells |
 |
Tue, 15 Apr 2008 13:14:04 -040 |
Hi,
I’ve tried your proposal (I was not aware of that feature –thanks) the problem
is : a complete column is blocked and in fact what I try to do is to block the 2
first rows (they are the title of the subsequent rows)
In fact what I do is to present my data in an Excel sheet fashion, and to gain
the possibility to shift data from right to left with the horiz.scroll bar I
must include the title in the grid (and I want to protect it)
More suggestions welcome
Regards
Michel
Roland Wingerter Wrote
> Michel PAIN wrote
> > Hello,
> > For a clic on a Grid I know : which Row, which Column are aimed at.
> > How can I prevent the user to update a cell according to it's
Row/Column
> > I want to have cells updatable and clls protected
> > I'm looking for something like "When = {;return false}" or
enabled =
> > false.
> > I didn't find anything in the editorcontrol.
> ---------
> To make a grid cell readonly you can set the
> rowset.fields["FieldName"].readOnly property to false.
>
> Roland
>
|
| Post Reply
|
| Re: GRID & Grid cells |
 |
Tue, 15 Apr 2008 15:44:09 -040 |
Try taking Roland's suggestion a little further.
Add a logical (boolean) field to the rowset that indicates whether the row
should be treated a readonly.
Then use the rowset's onNavigate event (or the grid's onSelChange) to set each
field's readonly property based on the value of that logical field in the
current row.
Roger
Michel PAIN Wrote:
> Hi,
> I’ve tried your proposal (I was not aware of that feature –thanks) the
problem is : a complete column is blocked and in fact what I try to do is to
block the 2 first rows (they are the title of the subsequent rows)
> In fact what I do is to present my data in an Excel sheet fashion, and to
gain the possibility to shift data from right to left with the horiz.scroll bar
I must include the title in the grid (and I want to protect it)
> More suggestions welcome
> Regards
> Michel
>
>
>
> Roland Wingerter Wrote
>
> > Michel PAIN wrote
> > > Hello,
> > > For a clic on a Grid I know : which Row, which Column are aimed
at.
> > > How can I prevent the user to update a cell according to it's
Row/Column
> > > I want to have cells updatable and clls protected
> > > I'm looking for something like "When = {;return false}"
or enabled =
> > > false.
> > > I didn't find anything in the editorcontrol.
> > ---------
> > To make a grid cell readonly you can set the
> > rowset.fields["FieldName"].readOnly property to false.
> >
> > Roland
> >
>
|
| Post Reply
|
| Re: GRID & Grid cells |
 |
Tue, 15 Apr 2008 23:57:42 -040 |
I'll try, sounds great
Thanks
Michel
Roger Sauer Wrote:
> Try taking Roland's suggestion a little further.
>
> Add a logical (boolean) field to the rowset that indicates whether the row
should be treated a readonly.
>
> Then use the rowset's onNavigate event (or the grid's onSelChange) to set
each field's readonly property based on the value of that logical field in the
current row.
>
> Roger
> Michel PAIN Wrote:
>
> > Hi,
> > I’ve tried your proposal (I was not aware of that feature –thanks) the
problem is : a complete column is blocked and in fact what I try to do is to
block the 2 first rows (they are the title of the subsequent rows)
> > In fact what I do is to present my data in an Excel sheet fashion, and
to gain the possibility to shift data from right to left with the horiz.scroll
bar I must include the title in the grid (and I want to protect it)
> > More suggestions welcome
> > Regards
> > Michel
> >
> >
> >
> > Roland Wingerter Wrote
> >
> > > Michel PAIN wrote
> > > > Hello,
> > > > For a clic on a Grid I know : which Row, which Column are
aimed at.
> > > > How can I prevent the user to update a cell according to
it's Row/Column
> > > > I want to have cells updatable and clls protected
> > > > I'm looking for something like "When = {;return
false}" or enabled =
> > > > false.
> > > > I didn't find anything in the editorcontrol.
> > > ---------
> > > To make a grid cell readonly you can set the
> > > rowset.fields["FieldName"].readOnly property to false.
> > >
> > > Roland
> > >
> >
>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|