This question is locked. New answers and comments are not allowed.
For example, I have column like this...
| <telerikGridView:GridViewDataColumn x:Name="Edit_Edit1"> |
| <telerikGridView:GridViewDataColumn.CellTemplate> |
| <DataTemplate> |
| <Button Content="Edycja" Style="{StaticResource greenMediaButton}" Click="EditButton1_Click"/> |
| </DataTemplate> |
| </telerikGridView:GridViewDataColumn.CellTemplate> |
| </telerikGridView:GridViewDataColumn> |
and in EditButton1_Click event, for silverlight DataGrid I did it so...
| Button bt = sender as Button; |
| KronSiteTable kst = bt.DataContext as KronSiteTable; |
| DataGridCell cellButton = bt.Parent as DataGridCell; |
| DataGridCellsPresenter cells = cellButton.Parent as DataGridCellsPresenter; |
but when i use GridViewCell:
| GridViewCell cellButton = bt.Parent as GridViewCell; |
i get the null Parent property.
About what I mean.
I want to access the row in which there is a button you click on it, to have the ability to modify individual cells.
Thank you in advance for your reply.
Patryk.
