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

[Solved] hide raddatagrid column

1 Answer 121 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik Damgaard
Top achievements
Rank 1
Erik Damgaard asked on 07 May 2013, 04:31 AM
I need to hide different columns at runtime on the basis of some business logic, but I could not find the way to hide columns. There is no IsVIsible or Visibility property in columns. Can you please tell me how to achieve this.

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 08 May 2013, 04:42 PM
Hello Erik,

Thank you for contacting us.

For now, the only way to hide a column from a RadDataGrid is to remove the column like this:
this.dataGrid.Columns.RemoveAt(int index);
or: 
this.dataGrid.Columns.Remove(DataGridColumn item);


Let me know if I can assist you in some other way.

 

All the best,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Erik Damgaard
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or