31 August 2010

Enable Grid Filter for a Form

If you want a form to open with enabled grid filter you can use the following code in the run Method of the form
public void run()
{
    #define.strgG(2855)
    ;
    super();

    //enable Grid Filter
    this.task(#strgG);
}
Therefor the grid should be the selected control. If this isn't the case use the firstField Method of the form:
public void firstField(int _flags=1)
{
    ;
    Grid.setFocus();
}
Post a Comment