Hi,
I have some questions - I've looked in the examples but couldn't find the answers. Maybe you should extend your "Columns" example with this.
I have a Datagrid bound to a datasource.
In one column I have a unbound Button
In another column I have a unbound ComboBox
Both inserted via a ControlTemplate
1) When clicking the Button how do I know which row was clicked?
I use the DataGrid.CurrentRecord property - and that seems to work ok. Through casts I can get the primaryID of the row.
But is that the preferred way to do it. And is it a reliable way?
2) In the button click event: How do I access the ComboBox in the current row. I've tried doing it through the CurrentRecord property . but seems to focus more on the datasource rows - and not on the rendered rows and cells. How do I do that ?
3) Do you ship documentation with the Release 1.0 at the end of July ?
I have some questions - I've looked in the examples but couldn't find the answers. Maybe you should extend your "Columns" example with this.
I have a Datagrid bound to a datasource.
In one column I have a unbound Button
In another column I have a unbound ComboBox
Both inserted via a ControlTemplate
1) When clicking the Button how do I know which row was clicked?
I use the DataGrid.CurrentRecord property - and that seems to work ok. Through casts I can get the primaryID of the row.
But is that the preferred way to do it. And is it a reliable way?
2) In the button click event: How do I access the ComboBox in the current row. I've tried doing it through the CurrentRecord property . but seems to focus more on the datasource rows - and not on the rendered rows and cells. How do I do that ?
3) Do you ship documentation with the Release 1.0 at the end of July ?