General information
Category:
Forms & Form designer
>>Hi all again...
> >
> >I would like to know how I can select multiple records (probably by highlighting them) in my grid and
> then click a command button to change the value of one field for those records (For example I want to
> select a bunch of records and click on a 'CLOSE' button to change the status field of these records to
> 'CLOSED') instead of doing one by one.
> >
> >Thanks a lot.
>
>> Grid.Recordsource may contain one additional field which will allow to highlight a row (by using
DynamicBackColor property). Then multiple change would be simple enough:
>> REPLACE ALL mystatus With "CLOSED" For lSelected=.T.
>
>Edward,
>
>Thanks for your fast reply. But I am not very clear about how to change the DynamicBackColor of
those records. I want to be able to drag over those records to highlight them (or press the Shift key or
something like that). How can I do it?
>
>Any help would be very appreciated.
>***Grid.Init event
> >this.setall("DynamicBackColor","IIF(mytable.lselected=.T.,16777215,0)","Column")
> ***Grid.Column.Control.Dblclick event
> Replace mytable.lselected with !lselected && it will select/deselect by doubleclick
Edward,
Thanks a bunch!! It works.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only