Thanks a lot for ur help..I figured out how to do it..For the benefit
of others i'll post a code snippet..Plz check if it works..





/**

* Removes row with row number passed as parameter.

*

* @param row

*/

public void removeRow(int row) {

getCachedTableModel().removeRow(row);

getTableModel().removeRow(row);

}


/**

* Add a row of data cells each consisting of a string that describes
the

* row:column coordinates of the new cell. The number of columns in the
new

* row will match the number of columns in the grid.

*

* @param beforeRow

* the index to add the new row into

*/

public void insertDataRow(int beforeRow, DataSource data,

List<ColumnMetaData> columnMetaDatas) {


// TODO null checks for Insert Data Row.F

getCachedTableModel().insertRow(beforeRow);

getTableModel().addData(data);


for (int column = 0; column < columnMetaDatas.size(); column++) {

String html = data.getCell(column).toString();

dataTable.setHTML(beforeRow, column, html);

}


}








--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to