Problem with adding columns dynamically in dhtmlxgrid

hiii.How to add or delete columns dynamically using java connector in dhtmlxgrid.it should reflect in database also.when i tried this normally a column is adding or deleting but not reflecting in database.should we write any queries.should we change any thing in connector jar java files.one more doubt i have is iam able to add or delete columns using connector.but when iam trying to delete more than 2 columns it is showing arrayindexoutofboundexception,nullpointer exception or databasewrapper class error .for all these things is there any need of changing the code in source java files which i have extrracted from javaconnector.
thanking you.

Adding-deleting columns in dhtmlxgrid is fully client side functionality it is not related to connectors in any way. If you wish to reload data with different set of fields - probably you need to use custom server side code.

but when iam trying to delete more than 2 columns i
removeColumn code in java is related to data-saving processing and has not real impact on client side grid representation.
If you still have a java error - please provide content of connector class which causes issues.