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

How to hide the unused column?

3 Answers 644 Views
GridView
This is a migrated thread and some comments may be shown as answers.
kj
Top achievements
Rank 1
kj asked on 22 Jul 2010, 04:42 PM
Hi,
http://nccu.edu.tw/96356029/view.JPG

Please see the hyperlink picture, how can I hide unused column or let current column fill with RadGridView. It seems I can set AutoGenerateColumn=False, but my application add RadGridVew and bind data programmically,  if I set AutoGenerateColumn=False,
the  running result  of RadGridView will be without data, is there any way I can do? 

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 23 Jul 2010, 06:57 AM
Hello kj,

What you can do in order to remove the last column in the end is either to set the property of the grid ColumnWidth="*" or the property of the last grid column Width="*" .
 

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Karan
Top achievements
Rank 1
answered on 16 Jun 2011, 10:22 AM
how do i achieve this if i am not autogenerating the columns
0
Maya
Telerik team
answered on 16 Jun 2011, 10:25 AM
Hi karan,

There should be no difference whether you are autogenerating columns or not. The ColumnWidth property needs to be set at the RadGridView level, not the columns. The Width property of the column may be set to a specific column in xaml like:

<telerik:GridViewDataColumn Width=* />

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
kj
Top achievements
Rank 1
Answers by
Maya
Telerik team
Karan
Top achievements
Rank 1
Share this question
or