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

Column Property Binding

1 Answer 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Charlie
Top achievements
Rank 1
Charlie asked on 23 Feb 2009, 03:16 AM
Hi,

How do i bind the IsVisible property of GridView columns to the items in a CheckedListBox.

I need to do the reverse of....

CheckBox1.DataBindings.Add(New System.Windows.Forms.Binding("Checked", Me.RadGridView1.Columns(0), "IsVisible", True)) 

.....so Checking/Unchecking listbox items will Show/Hide columns in a gridview.

1 Answer, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 23 Feb 2009, 02:00 PM
Hi Charlie,

The WinForms framework does not support this type of binding and you cannot bind the IsVisible property of GridViewColumn. You should do this by handling the corresponding events in the list box and set the property manually. I hope this information helps. If you need further assistance, do not hesitate to write us back.

All the best,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Charlie
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or