Hello,
I have a XamDataGrid which have a checkbox inside its ControlTemplate, On a button (outside the grid)click,how can I access the check box?
Can you please let me know its possible or not asap,if then please give me a sample.
TIA
Vivek
Hello Vivek,
Thank you for your post. I have been looking through it and I suggest you use the following code on order to access the ActiveRecord’s CheckBox:
DataRecordPresenter recpresenter = DataRecordPresenter.FromRecord(AvailableBookGrid.ActiveRecord) as DataRecordPresenter; CheckBox cb = Utilities.GetDescendantFromName(recpresenter, "SelectionCheckbox") as CheckBox;
Looking forward for your reply.