This is a migrated thread and some comments may be shown as answers.

MaxWidth and MinWidth for the GridView

1 Answer 292 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 03 Sep 2014, 03:20 AM
How I am going to implement this maxwidth or minwidth to my gridview  with different data in column and this gridview should fit all screens without scrollbars.. Thanks. Hope you can help me. I'm stuck in here..

Regards,
Kim

1 Answer, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 05 Sep 2014, 12:59 PM
Hello Kim,

I am not entirely sure why you need to set the MinWidth / MaxWidth properties of the GridView to regulate the different data in the columns. 

A possible approach for setting all the columns to the same width is to set the ColumnWidth property of the GridView to "*"
Please keep in mind that a horizontal ScrollBar will appear when the viewable area is too small to display all the columns.  

However, if this is not what you have in mind, could you please provide us with more details about your case, perhaps some pictures of how your project looks at the moment and how you envision it to look?  

I hope this helps.

Regards,
Boris Penev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Kim
Top achievements
Rank 1
Answers by
Boris
Telerik team
Share this question
or