Silverlight / WPF - access value from datagrid

Asked By Saurabh ...... on 05-Jun-09 11:22 AM
i hav a silverlight data gird control in which i hav datagridtemplate column. as

<Data:DataGridTextColumn Width="25" Binding="{Binding UserName}" >


 <data:DataGridTemplateColumn Header="Role" Width="138">


                        <DataTemplate >

                            <TextBlock Text="{Binding Mode=TwoWay, Path=UserId}" VerticalAlignment="Center"  />




now how can i access the value of these columns at runtime

Re - Ravenet Rasaiyah replied to Saurabh ...... on 05-Jun-09 11:59 AM


To access the rows in grid in WPF is little tricky. and not like windows gridview.

thank you