datagrid and getting all data

i have  a datagrid in silverlight   and i fill it with data . the problem is    i want to display cell row 1 col1 in a textbox but i cant get access to individual cells?

    Public Sub methodHandler_filldatacompleted(ByVal sender As Object, ByVal e As ServiceReference1.filldataCompletedEventArgs)
        Dim a As New List(Of datagrid.ServiceReference1.subject)
        Dim data2 As New List(Of Class1)

        dg1.ItemsSource = e.Result
        '   a = CType(dg1.ItemsSource, datagrid.ServiceReference1.subject)
        'tb.Text = a.Count

    End Sub

Public Class Class1
    Dim m_id As String
    Dim m_subject As String
    Dim m_test As String
    Dim m_comment As Boolean

.Error    1    Value of type 'datagrid.ServiceReference1.subject' cannot be converted to 'System.Collections.Generic.List(Of datagrid.ServiceReference1.subject)'.    D:\silverlight\datagrid2\datagrid\Page.xaml.vb    50    13    datagrid2
Who is Participating?
gangwischConnect With a Mentor Commented:
'the format for this is datagrid1.item(rowindex,columnindex)
jagguyAuthor Commented:
there is no such command in silverlight?


I believe in silverlight i need to parse the data into xml but i dont know how to do this, and after 3 days of asking on forums not many people know this either.

b elow is something i was told with c# but i cant get code and i cant use
..XDocument.Parse(e.Result)? error

XDocument xmlDescription = XDocument.Parse(e.Result); 'error cant convert and .tostring has no effect
var ProjectInfo = from desc in xmlDescription.Descendants("Table")
select new
Description =desc.Element("A0").Value
foreach (var info in ProjectInfo)
         txtDescription.Text = info.Description;

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.