Hi,
I have placed a html button on one of the columns in the grid (gridview1). I have set a viewModel Items as itemsource for the grid. I have a command defined in the view model called Projects which holds the items viewmodel also. Because the itemsource for the grid is set as Items, the column cell templates and controls inside it only have access to Items. I need access to Projects ViewModel.
I was able to use the DataContext={Bindng DataContext ElementName ="gridview1" } to get the Project viewmodel in my group header templates but it is coming as null when used inside the column templates.
Anybody have done this before? I know in WPF we have findancestor etc but in Silverlight 3 what are my options?
Thanks
Anoop
I have placed a html button on one of the columns in the grid (gridview1). I have set a viewModel Items as itemsource for the grid. I have a command defined in the view model called Projects which holds the items viewmodel also. Because the itemsource for the grid is set as Items, the column cell templates and controls inside it only have access to Items. I need access to Projects ViewModel.
I was able to use the DataContext={Bindng DataContext ElementName ="gridview1" } to get the Project viewmodel in my group header templates but it is coming as null when used inside the column templates.
Anybody have done this before? I know in WPF we have findancestor etc but in Silverlight 3 what are my options?
Thanks
Anoop