||Re: Checkboxes in grid column
||Wed, 19 Sep 2018 12:31:56 -0400
OK perhaps I need to ask a different question. If I want to allow a user to select multiple rows in a grid without having to add a new field to a dbfile how do I go about it? What is the best solution for this? I'm no expert in DBase coding so the simpler the solution the better if I am honest.
Ken Mayer Wrote:
> On 9/18/2018 9:11 AM, Kinsley wrote:
> > Hi all,
> > This is probably a simple issue that's been asked previously (I can't find it in the forum), but essentially I am wanting to add a tickbox in the first column of a grid so that I can allow my users to select rows/records from the grid to then run tasks on i.e. send an email to each email address selected.
> > Can anyone give me a clue how this is done as I am having trouble working it out with the help files I am finding.
> Columns in a grid require a field. However, you can add a custom field
> object to your rowset, or if you have a logical field called, for
> example "selected", you can just use that. If this is something you're
> going to do often, you might find that a simple fix. You would have to
> perhaps empty it out before opening the form with the grid:
> update MyTable set selected=false
> In the grid, you have to select the columns to display to have some
> control over them, once you do that, if the field is logical, then the
> designer will automatically set it as a checkbox.
> *Ken Mayer*
> Ken's dBASE Page: http://www.goldenstag.net/dbase
> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm