Hi Infragastics Team,
I am trying to have set of radio buttons inside a xamdatagrid. But the problem is that I am binding xamdatagrid to Dataset. I did not find much resources.
I am attaching my sample example(which has checkbox, Not Radio Button). Please specify how can i add the Radio Button in the xamdatagrid. Also How to have space between two tables in the xamdatagrid, Since my Dataset may have upto 10 tables.
Thank you for contacting Infragistics!
To get radio buttons in the XamDataGrid you would have to have a template field:
What are you trying to achieve with the radio buttons?What is the behavior you are expecting?
Sincerely,Mike P.Software DeveloperInfragistics, Inc.www.infragistics.com
Thanks for the reply.
I have attached a Project which displays set of tables with checkboxes in each row. I want to replace the checkboxes with radio button.
When user clicks the MASS UPDATE and ACTIVATE button, I want to capture the row which the user has checked the radio button and wants to send the data to Database.
Mike, it will be helpfull if you modify the my attached project, TestProject.zip
Thank you for the update. For further clarification do you want the radio buttons in the rows to act as 1 group where you can only select one row? Or do you just want a checkbox that has a difference appearance and the user can select as many rows/radio buttons as they want?
i want Radio button in the rows to act as 1 group in the first table, Similarly i also want this for second table.
If there are two tables.
First table has 4 Rows(radio Button), Then user should be able to select only one row(radio button) from 4 rows(Radio Button).
Second Table has 3 Rows (radio Button), Then user should be able to select only one row(radio button) from 3 rows(Radio Button).
At the End, one Row from each table.
It would be very helpfull, If i get this in MVVM.
Thank you for the update. As mentioned previously you would have to template the column and put the radio button in there. In addition to that you will be responsible for unselecting and previous radio buttons when you select a new radio button as each cell would be its own radio button group. You can look into the selected items changed event for going through your other rows and unselecting the radio button: