title: Jquery datatable : Dynamically manipulate the aoColumns attributes
body: <p>I have a requirement in which I need to change the data-table data and headers based on the radio button selection. The response is made available by an AJAX request. We can easily change the data by using API function. But I need to change the column properties (specifically sTitle,mData) as my response have different keys for each of the radio button selection.</p>
  
  <p>For the first radio button my response is:</p>
  
  <pre><code> {"id" :101, "label" : "Ragesh"}; headers - Id, Label ,
  </code></pre>
  
  <p>Second radio button response:</p>
  
  <pre><code>  {"type" :2 , "name" :"Ravi"} ; headers - Type, Name
  </code></pre>
  
  <p>Please tel me how this can be accomplished without recreating data-table</p>
  
  <p>If any clarification is required, I can provide more details</p>
  
  <p>Any kind of help is highly appreciated !!!</p>
  
  <p>~Ragesh</p>