Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
eg: I have a grid with displaying firstname , last name , and in each row having delete, edit button which are generating dynamically ,by clicking on selected row , row has to be delete or Edit how can achive this if i click on edit button a child window has to pop up , i used galasoft dll and i:interaction triggers , observable collection and MVVM patern please help me .

the bellow is my .xaml code
HTML
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding SelectionChangedRelayCommand}"
CommandParameter="{Binding SelectedItem, ElementName=DisplayGrid}"/>
</i:EventTrigger>

</i:Interaction.Triggers>

Viewmodelcode to select the row
C#
public RelayCommand<object> SelectionChangedRelayCommand
{
get;
set;
}
public void SelectionChangedCommandExecute(object param)
{
this._StudentDtos = param as StudentDto;
EDITCmd.RaiseCanExecuteChanged();
DeleteAllCmd.RaiseCanExecuteChanged();
}
Posted
Updated 5-Jun-12 21:16pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900