SORT a Dbgrid Dynamically

[b][red]This message was edited by Halim1973 at 2002-10-17 14:31:2[/red][/b][hr]
how to catch the fieldname of a column in DBgrid components. I want to use it to sort the DBgrid by the onclick event on the fieldname of the Dbgrid title?
Thanks.


Comments

  • : [b][red]This message was edited by Halim1973 at 2002-10-17 14:31:2[/red][/b][hr]
    : how to catch the fieldname of a column in DBgrid components. I want to use it to sort the DBgrid by the onclick event on the fieldname of the Dbgrid title?
    : Thanks.
    :
    :
    :

    Use the OnTitleClickEvent

    then sort the table using the Column passed in the OnTitleClickEvent to get the FieldName. Then Sort the Table using that FieldName
  • It works perfectly!
    Thanks..

    : : [b][red]This message was edited by Halim1973 at 2002-10-17 14:31:2[/red][/b][hr]
    : : how to catch the fieldname of a column in DBgrid components. I want to use it to sort the DBgrid by the onclick event on the fieldname of the Dbgrid title?
    : : Thanks.
    : :
    : :
    : :
    :
    : Use the OnTitleClickEvent
    :
    : then sort the table using the Column passed in the OnTitleClickEvent to get the FieldName. Then Sort the Table using that FieldName
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories