public class MyWinFormsDataGridView : WindowsFormsHost, IMyUIElement { DataGridView _gridView; public MyWinFormsDataGridView() { this._gridView = new DataGridView(); this._gridView.DataSource = ...; this.Child = this._gridView; } }
<MyGrid Name="grid1"> <MyWinFormsDataGridView ...> <swf:DataGridView ...> ... <swf:DataGridView.DataSource> <MyBindingList><tones of data i dont need to save...></MyBindingList> </swf:DataGridView.DataSource> </swf:DataGridView> </MyWinFormsDataGridView></MyGrid>
<swf:DataGridView ...> ... <swf:DataGridView.DataSource> <MyBindingList><tones of data i dont need to save...></MyBindingList> </swf:DataGridView.DataSource> </swf:DataGridView>
<MyGrid Name="grid1"> <MyWinFormsDataGridView>...</MyWinFormsDataGridView></MyGrid>