Fetching DataGrid Columns Data [modified]
-
Hi! My question is: How to get the columns data(values) of selected row in a datagrid of silverlight in C# code? My grid has multiple columns.I want to get the data of each column. Plz also guide me if my grid columns has controls (like "TextBlock" etc) then how to fetch data from such columns. Please help me with code and some description. Thanks in advance. M.Fasih
fasih_is_my_signature
modified on Monday, August 11, 2008 7:44 AM
-
Hi! My question is: How to get the columns data(values) of selected row in a datagrid of silverlight in C# code? My grid has multiple columns.I want to get the data of each column. Plz also guide me if my grid columns has controls (like "TextBlock" etc) then how to fetch data from such columns. Please help me with code and some description. Thanks in advance. M.Fasih
fasih_is_my_signature
modified on Monday, August 11, 2008 7:44 AM
fasih1981 wrote:
How to get the columns data(values) of selected row in a datagrid of silverlight in C# code? My grid has multiple columns.I want to get the data of each column.
You can get use the
DataGrid.SelectedItem
property in a way like:(dataGrid.SelectedItem as YourObject).AnyProperty
I hope this[^] article that I posted today may help you as it presents a master-detail UI using DataGrids and ListBox. Regards, Syed Mehroz Alam