How to order Grid columns programmatically

Hello,

I would like to ask you, if there are any way to set the specific order of columns programmatically for Grid and TreeGrid components?

I think, the idea of setting the column properties on the Grid instance will not work here, due to the fact that we have to add tags manually. Because, in most of cases our Grids columns have:

  1. Complicated data set
  2. If else conditions
  3. Function calls
  4. And tags in them.

PS. I wish there was a property similar to visible, where I could pass the order number of column's occurrence in a Grid.

Best Regards,

Ignacy Mielniczek


1 Reply

JC Joseph Christ Nithin Issack Syncfusion Team May 26, 2022 05:15 PM UTC

Hi Ignacy,


  Greetings from Syncfusion support.


  Before proceeding to the solution, we are not clear about the requirement, kindly share the below details so that we can be able to assist you in a better way.


  • Please explain your requirement in detail.
  • Please share a video demo of your requirement.
  • Please share the grid rendering code you are using.
  • Please share the Syncfusion package version you are using.


Please get back to us for further details.


Regards,

Joseph I.


Loader.
Up arrow icon