tblMain.removeRows();
或者
public static void removeTableData(KDTable table) {
IObjectCollection collection = (IObjectCollection) table.getUserObject();
if (collection != null && !collection.isEmpty())
for (int rowIndex = 0; rowIndex < table.getRowCount(); rowIndex++) {
IObjectValue detailData = (IObjectValue) table.getRow(rowIndex).getUserObject();
if (detailData != null) {
collection.removeObject(detailData);
}
}
table.removeRows();
}