Auto Size Rows and Columns

I have my grid control nested inside of a canvas control. I want to bind the height and width of the grid control to the height and width of the canvas control. I then want to define how many rows and columns the grid will have, so that it auto fills the width and height of the cells. I would then like it to re-size when the canvas re-sizes (this event will happen when the window re-sizes). Is there any way to do this?

3 Replies

KB Kanimozhi Bharathi Syncfusion Team September 13, 2016 10:57 AM UTC

Hi David, 

We have analyzed your query and prepared a sample based on your requirement by invoking SizeChanged Event of GridControl and setting the height and width for the rows/columns. Please find the sample link for your reference. 



Regards 
Kanimozhi B 



DA David September 13, 2016 12:01 PM UTC

That is awesome. Exactly what I was looking for thanks Kanimozhi. The support at Syncfusion is amazing, thank you.


PS Pannir Selvam S Syncfusion Team September 14, 2016 09:15 AM UTC

Hi David, 
  
Thanks for your update. 
  
Regards, 
Pannir 


Loader.
Up arrow icon