Groups > dBase > dBase shared code > Custom sortgrid form




Custom sortgrid form

Custom sortgrid form
Thu, 22 Mar 2007 17:04:29 +010
The zip-file contains a custom form with a sortable grid, a sample form and 
two associated cc's. More info below my signature.
Feedback and improvements are welcome.
Roland
/*
  SortGrid.CFM A custom form with a grid, with sortable columns.
  Programmer.....: Roland Wingerter
  Last Update....: March 2007
  Notes:
  1. The grid columns are created programmatically, including
     the call to events like headingControl_onLeftDblClick
  2. LeftDblClick on a column header sorts by this column,
     RightDblClick on a column header hides this column.
  3. Sorting by a column is achieved by redefining the sql statement,
     closing the current form and opening a new form with the new sql
     select statement.
  4. A column is hidden by setting its width to 0. A hidden column will
     not be included when the sql statement is redefined.
*/ 
Post Reply
about | contact