Friday, November 30, 2007 Tip of the Day #6: Disabling the Sort Feature for DB Grid Columns
Supported Versions: R:BASE 7.6 for Windows (Build 7.6.2.31130 or higher ...) R:BASE 7.6 (C/S:I) for Windows (Build 7.6.2.31130 or higher) R:BASE Turbo V-8 for Windows (Build 8.0.16.1130 or higher) When a DB Grid control is placed on a form, by default, every column includes the ability to sort (Asc/Des) when clicking on the column title; displaying the current sort state. However, there may be application instances, you may not want your users to change the default sort state. Did you know that you can disable the column sort option by un-checking the "Title Clickable" property used in DB Grid? A new option [ ] Title Clickable has been added for customizing the individual column properties for DB Grids. The default is set to checked, i.e, Title Clickable. A new PROPERTY command is also introduced to manage the column title properties: Syntax: PROPERTY <DBGRIDComponentID> Columns[n]-> ClickableTitle 'value' Example: PROPERTY DBGRID Columns[0]-> ClickableTitle 'FALSE' This property command will disable the sort feature for the first DB Grid column. Enjoy the R:BASE you have always wanted! Very Best R:egards, Razzak.

