All
Is this the correct way to use the DataSource object for inserting and updating objects.
	And the ListGrid is setup as follows
	
							
						
					Is this the correct way to use the DataSource object for inserting and updating objects.
Code:
	
	if(this.ListGrid().getDataAsRecordList().contains(record)) {
   this.DataSource().updateData(record);
} else {
   this.DataSource().addData(record);
}
Code:
	
	this.ListGrid.setDataSource(datasource);