Razzak,

Thank you for the information. I seem to be using the latest version of 9.5 
(64) released to the general population in October. I look forward to the next 
outstanding update!


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of A. Razzak Memon
Sent: Tuesday, November 26, 2013 2:36 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: DB Enhanced Grid Sorting

At 03:47 PM 11/25/2013, Richardson, Jeff wrote:

>Hello. I understand that I can sort data in an Enhanced DB Grid by 
>simply clicking on the column title. However, I would like this action 
>to occur in an EEP. Is there a PROPERTY command that will sort a single 
>column in an enhanced DB grid? I've been looking, but I don't see it.

If there was such a thing, it should be documented with examples, in R:Docs 9.5.

Got R:Docs 9.5?

Having said that ...

If you are using the latest "private-beta" of R:BASE eXtreme 9.5, Update 3, you 
could use the following PROPERTY command to achieve such cool feature.

Here's how:

-- Syntax

    PROPERTY <EnhancedDBGridComponentID> SortAsc '0'
    PROPERTY <EnhancedDBGridComponentID> SortDesc '0'

-- Example (Based on RBG9_EnhancDBGrd form included with RRBYW18)

-- To Dynamically Sort (ASC) the first column (Company)
    PROPERTY DBGrid_Customers SortAsc '0'

-- To Dynamically Sort (DESC) the first column (Company)
    PROPERTY DBGrid_Customers SortDesc '0'

-- To Dynamically Sort (ASC) the second column (City)
    PROPERTY DBGrid_Customers SortAsc '1'

-- To Dynamically Sort (DESC) the second column (City)
    PROPERTY DBGrid_Customers SortDesc '1'

    Alternative, you could also use the following PROPERTY syntax as well.

    PROPERTY <EnhancedDBGridComponentID> SortAsc 'columnname'
    PROPERTY <EnhancedDBGridComponentID> SortDesc 'columnname'

-- To Dynamically Sort (ASC) the first column (Company)
    PROPERTY DBGrid_Customers SortAsc 'Company'

-- To Dynamically Sort (DESC) the first column (Company)
    PROPERTY DBGrid_Customers SortDesc 'Company'

-- To Dynamically Sort (ASC) the second column (City)
    PROPERTY DBGrid_Customers SortAsc 'City'

-- To Dynamically Sort (DESC) the second column (City)
    PROPERTY DBGrid_Customers SortDesc 'City'

That's all there is to it!

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
-- 
30+ years of continuous innovation!
15 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
-- 


Reply via email to