Topic: Bulk Edit or Delete

Will there be an option to perform a bulk edit (in line editing) or allow for multiple record selection from a grid?

Thank you,
  Rob

Re: Bulk Edit or Delete

You can only delete multiple records, example:
http://myvisualdatabase.com/forum/viewtopic.php?id=1433

Dmitry.

Re: Bulk Edit or Delete

DriveSoft wrote:

You can only delete multiple records, example:
http://myvisualdatabase.com/forum/viewtopic.php?id=1433

Thanks for pointing me in the right direction.  Are there plans to add a checkbox within the grid?  I would like to us a checkbox columns as part of the multiselect rather than using the selected records.  I have many items and it goes across many pages and think the checkbox is an easier construct for endusers.

Thank you,
  Rob

Re: Bulk Edit or Delete

rjkantor
Please, try this example, for multiselection used first column in TableGrid.
http://myvisualdatabase.com/forum/misc. … download=1

Dmitry.

Re: Bulk Edit or Delete

DriveSoft wrote:

rjkantor
Please, try this example, for multiselection used first column in TableGrid.
http://myvisualdatabase.com/forum/misc. … download=1

Very cool.  Thank you.

Rob

Re: Bulk Edit or Delete

Dimitry -

I am trying to add a total selected footer can you tell me why the footer is not appearing?

procedure frmMain_TableGrid1_OnChange (Sender: string);
   var
    i,d,x: integer;
begin
    
     x := 0;
     d := frmMain.TableGrid1.RowCount - 1; // count of records in TableGrid
     for i :=0 to d do
         if frmMain.TableGrid1.Cell[0, i].Color = clRed then // if record selected
            x:= x+1;
     frmMain.TableGrid1.Columns[0].Footer.color := clRed;
     frmMain.TableGrid1.Columns[0].Footer.Caption := 'Selected: ' + inttostr(x);
end;

Re: Bulk Edit or Delete

You should to enable footer:

Form1.TableGrid1.Options := Form1.TableGrid1.Options + goFooter;
Dmitry.

8 (edited by rjkantor 2015-06-18 14:55:23)

Re: Bulk Edit or Delete

I found if I move the code into the onCellClick the footer works after I enable it like you pointed out.

Re: Bulk Edit or Delete

Please, download this example, how to enable footer by script.

Post's attachments

Attachment icon Footer by script.zip 5.54 kb, 514 downloads since 2015-06-18 

Dmitry.