lundi 11 mai 2015

Bind Radbutton in RadGridView to Icommand - WPF MVVM

Here is my Code. Can I use GridViewcolumn and datatemplate for this ? I want Radbutton in every row. Once I click on that button, I want to pass the row details to ICommand. How can I do this ?

XAML:

<telerik:GridViewColumn Width="100">
    <telerik:GridViewColumn.CellTemplate>
          <DataTemplate>

           </DataTemplate>
     </telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>

C#:

public ICommand ShowCommand
{
    get
    {
        return new RelayCommand(this.ShowDetails);
    }
}

Aucun commentaire:

Enregistrer un commentaire