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

Grid, DataForm, Data Filter in code not xaml

0 Answers 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 15 May 2012, 09:27 PM

Anyone know of C# code examples that show a RadDataFilter, RadGridView, and RadDataForm all using the same "Source"?
Something like this?

IEnumerable<MyClass> SomeResults;

SomeResults = GetResults();

MyDataForm.ItemsSource = SomeResults
MyDataFilter.Source = SomeResults;
MyGridView.ItemsSource = SomeResults;

I know in xaml you can do something like this for the grid
{Binding FilteredSource, ElementName=MyDataFilter}

but I have no idea how to pull this off in C# code.

When I scroll my grid, the Dataform does not move.  When I select next in my dataform, the Grid selection does not move, and when I apply a filter, nothing gets filtered.

This setup (Filter, Grid, dataform) will be used to display items from multiple sources, therefore I have to do it all in code.

Thanks for any help.

Jeff

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Jeff
Top achievements
Rank 1
Share this question
or