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

Setting a column Width to 0 does not hide it

1 Answer 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 16 Aug 2012, 11:40 AM
Hi.

I'm Jorge Muria from Video Stream Networks. I've just updated a Silverlight application from v. 2010_3_1110_DEV version to Q2 2012 SP1 and somethink broke. We set the column Width to 0 in order to store hidden data within the row. Now if I set it to 0, there is a minimum size displayed (around  20 pixels) and I cannot do it smaller.. 

I know I can use IsVisible property but I'll have to change the application behaviour because the hidden columns are not directly accesible and I'll have to access the DataContext. I prefer to void to make that kind of changes now. 

Is there anything that I can do to set the width to 0 or hide the column while accessing it like with the other columns?

Thanks in advance. 
Jorge Muria. 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 16 Aug 2012, 01:39 PM
Hello Jorge,

As you have upgraded from quite an old version, I would like to ask you to share more details on what your exact scenario is. That way I could suggest you a solution that benefits from the latest improvements we have introduced.

Why do you need to access the DataContext for the hidden column? What is your final goal?

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Manuel
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or