Skip to Content
author's profile photo
Former Member

How to preset selections in a tableview

Hello,

how can I preselect some rows in a tableview ?

Regards,

Gerald

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    May 26, 2004 at 09:33 PM

    You can walk through the table and select the rows that you want to be preselected

    int totalRows = searchTable.getRowCount();

    for (int i = 1; i <= totalRows; i++){

    if(someCondition){

    searchTable.selectRow(i, true);

    }

    }

    lakshmi

    Add comment
    10|10000 characters needed characters exceeded