We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Allow User To Resize SfDataGrid

Is it possible to allow the user to resize SfDataGrid controls during run time.  Useful for expanding the number of rows/columns displayed.

Thank you.

3 Replies

SV Srinivasan Vasu Syncfusion Team November 15, 2016 06:38 AM UTC

Hi David,   
  
We cannot understand your requirement clearly.    
   
You can change the Row height by setting SfDataGrid.RowHeight property in runtime.   
   
You can change the Column Width by setting SfDataGrid.ColumnSizer property in runtime.   
   
You can also add columns in runtime.    
  
If your requirement differs from this, please share more details about your requirement? This would help to analyze further   
  
Regards,   
Srinivasan   



DH David Harvey November 15, 2016 09:54 AM UTC

Hello,

Sorry, what I mean to say is that once the SfDataGrid is rendered on screen, can it be configured such that the user can grab the corner of the grid with their mouse (or fingers), and expand the size of the control.  Much like how one normally expands the size of the window to any arbitrary size, but in this case specific to the grid control itself

The result would be that the user can resize the grid to show more columns or rows depending on how big they resize the grid.  Note, this is not about adjusting the individual heights/widths of the rows/columns, but the whole table itself.


Thank you.


SV Srinivasan Vasu Syncfusion Team November 16, 2016 12:23 PM UTC

Hi David, 

We have analyzed your query and we have prepared a sample based on your requirement. You can resize the SfDataGrid vertically or horizontally during runtime using SfGridSplitter. 

Please find the sample from the below location. 


Please let us know if you need any query on this. 


Regards, 
Srinivasan 
 


Loader.
Live Chat Icon For mobile
Up arrow icon