Im Using WPF ToolKit March release.Im Having require ment like this:- Datagrid is populated with collection of customer object. Datagrid consists of 2 Template column.each Teamplate column consists of one Button.Namely Button1 ,Button2.When the User click
on Button1 Row Detail should be visible .RowDetail consists of Stackpanel with TextBox. On Click of Button ,I writing in code behind for button click
DataGridRow drp = DataGridRow.GetRowContainingElement(sender as Button); //gets Current Row of Button Clicked
(drp.DetailsTemplate.LoadContent() as StackPanel).FindName("TextBox1").Text = "Some Value"; Set the Text to TextBox1
whenever user clicks on Button2 of same row,RowdetailTemplate 's Textbox is not populated with NewValues.
Some How above code is not wrking
Even I moved code to LoadingRowDetails i.e On Clicking of Button Im calling LoadingRowDetails,First time it loads with correct value but next time i click on Another Button in the same row,it doesnot reflect with new value (which i set).
Code is wrking by moving code RowDetailsVisibilityChanged event ,It is wrking fine,But this event has to fire twice.because if there is change in visiblity of rowdetails then this event fires.First time rowdetail visiblity change from collapse to Visible
state, when i click on 2nd button,since rowdetail visiblity is visible,RowDetailsVisiblityChanged event doesnot fire.
Does any1 faced same issue.