I Have a bound Data grid view to the below Questions Class:
public class Questions()
{
public int QuestionId{get; set;}
public string Question {get; set;}
public List<Answers> AvailableAnswers {get; Set;}
public string SelectedAnswer {get; set;}
}
public class Answers()
{
public int AnswerId {get; set;}
public string Answer {get; set;}
public bool IsSelected {get; set;}
}
What I need is within my Datagrid to show the Available Answers as Radio buttons and when the user selects one of the radio buttons for the AnswerId to be set as the SelectedAnswer property in the Questions Class.
Can anyone help as i have been going round in circles trying to do this