Hi guys, I am new to WPF all together so not strong on concepts.
I have generated RadgridView and based on the selection of the cell in this Radgridview, I want to populate a new RadgridView.
The problem is how to pass this MyView object to Top-level ViewModel class so that it can initialize the second table that I want to generate based on the MyView object. I was thinking that when Top-level class will get notified about the new MyView object then it will set the DataSource for the second table to populate it.
Please let me know if you have any other suggestions. I am a new player :)
Thanks,
Mark
I have generated RadgridView and based on the selection of the cell in this Radgridview, I want to populate a new RadgridView.
public
partial
class
SummaryTable : UserControl
{
public
SummaryTable()
{
this
.InitializeComponent();
}
private
void
MainGridView_SelectedCellsChanged(
object
sender, GridViewSelectedCellsChangedEventArgs e)
{
IList<GridViewCellInfo> cellList =
this
.radView1.SelectedCells;
GridViewCellInfo cellInfo = (GridViewCellInfo)cellList.First();
// Initialize MyView object based on cellInfo.Item to capture the details of whole row
}
}
The problem is how to pass this MyView object to Top-level ViewModel class so that it can initialize the second table that I want to generate based on the MyView object. I was thinking that when Top-level class will get notified about the new MyView object then it will set the DataSource for the second table to populate it.
Please let me know if you have any other suggestions. I am a new player :)
Thanks,
Mark