Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 460 Bytes

File metadata and controls

27 lines (21 loc) · 460 Bytes

FlexGrid Remove Multiple Rows

var count = fgDoc2.SelectedRows;
removeRows( count );


function removeRows(count) {
        if(count==0) {
                return;
        }
        for(n=fgDoc2.Rows-1 ; n > 0 ; n--)
        {
                if(fgDoc2.isSelected(n)) {
                        fgDoc2.RemoveItem(n);
                        count--;
                        removeRows(count);
                        break;
                }
        }
}