This question is locked. New answers and comments are not allowed.
So I am trying to dynamically build a datagrid, and I want to be able to have eh scroll position indicator bind to a different column at different times.
How do I change which column the ScrollPositionIndicatorTemplate's ContentPresenter binds to in the code behind?
I tried the following (and numerous variants thereof!) to no avail:
How do I change which column the ScrollPositionIndicatorTemplate's ContentPresenter binds to in the code behind?
I tried the following (and numerous variants thereof!) to no avail:
| Binding binding = new Binding("Data.FirstName"); |
| this.RadGridView1.ApplyTemplate(); |
| ScrollPositionIndicator indicator = this.RadGridView1.ChildrenOfType<ScrollPositionIndicator>().First(); |
| indicator.ApplyTemplate(); |
| ContentPresenter presenter = indicator.ChildrenOfType<ContentPresenter>().First(); |
| presenter.SetBinding(ContentPresenter.ContentProperty, binding); |