Posted Tuesday, April 24, 2007 @ 07:06:25
Hi,
say i ve a single row in my QuickTable with column1 value = " ABC" and column21 value =" 200"
Now i want to update the row with column21 value to 100 from 200
here is the code am using:-
for(int i=0;i<odbtable.getRowCount();i++ ) {
String sendcompID = (String)odbtable.getValueAt(i,0);
if(sendcompID.equals("ABC")) {
Integer CumQty = new Integer(100);
odbtable.setValueAt(CumQty,i,21);
}
System.out.println(odbtable.getValueAt(i,21));
}
}
The System.println stmt prints the changed column value i.e 100
but still the table shows the old value.
how do i get the table to display the changed value.
Thanks in advance.