Grid headers default mouse pointers etc...

Hi all;

I am creating grids in my forms by dropping a table into the form. The default header's mouse icon is a down arrow which misleads the user into thinking that the column can be sorted.
Is there a way to change this default so it doesn't have the down arrow

Thx.


Answer this question

Grid headers default mouse pointers etc...

  • Rogermon

    Change the Grid.column.header.MousePointer Property to 1

    thisform.grdMyGrid.column1.header1.MousePointer= 1

    Dave M.



  • choskyg

    >> But my question is how to make it so I don't need to go over my 45 fields in the grid and do so.

    You could try using the columns collection....

    FOR EACH loCol IN This.Columns
    loCol.Header1.MousePointer = 1
    NEXT

    You could probably add this code to your 'dropped on' grid class Init()...



  • kkang

    What Alex said!

    If you are just using base classes directly then there is no solution except to fix each one individually. You should create a custom grid class and then replace all references in your forms to the base class grid with a reference to your class. YOu can do this programmatically if you want to but you should really use a tool like HackCx (available from White Light Computing at:

    http://www.whitelightcomputing.com/prodhackcxpro.htm

    This will enable youto update existing forms(and visual class libraries) without having to go through the designers...



  • dest201

    You can create a custom class called myGrid whereby the grid class is the base class. You can add a lot of stuff to it including what Andy suggested. Then you will be dropping your custom class, not the native one.

  • CapitalT

    Andy;

    When I drop in a grid from the DE or from anywhere else, the class for the grid is 'grid', which wouldn't allow any code manipulation...

  • MadNes

    Dave;

    That goes without saying... But my question is how to make it so I don't need to go over my 45 fields in the grid and do so.
    Oh, and I guess I can use setall to change these but I'm wondering if there is a way to define my dropped-in grids so they are not predefined as down-arrow in the header's mousepointer...

    Thanks,
    Aleniko

  • Grid headers default mouse pointers etc...