This is a migrated thread and some comments may be shown as answers.

[Solved] did not selected row after update cell content

1 Answer 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jerome
Top achievements
Rank 1
jerome asked on 12 Nov 2010, 07:32 AM
did not selected row after update cell content

I do as follows:
  EnableColumnVirtualization="False"   
                                            EnableRowVirtualization="False"      
  EnableColumnVirtualization="False"   
                                            EnableRowVirtualization="False"      
gridView xaml:
EnableColumnVirtualization="False" 
EnableRowVirtualization="False"
code behind:
 
  foreach (var item in SelectedDataGrid.Items)
                            {
                                GridViewRow row = (SelectedDataGrid.ItemContainerGenerator.ContainerFromItem(item) as GridViewRow);
                                if (row != null)
                                {
                                      row.GetCellFromPropertyName("Price").Content = LastPrice.ToString("#,##0.00");
row.GetCellFromPropertyName("Price").Foreground = new SolidColorBrush(Colors.Green);
 
                                }
                          }

so click the updated row , but row can not selected.


thanks.hope your help

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 12 Nov 2010, 09:33 AM
Hi jerome,

I have implemented the code-snippet you provided, but still I was not able to reproduce the issue you specified. You may take a look at the sample project I attached for a reference.
 

Sincerely yours,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
jerome
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or