DataGridTextColumn Content?
-
Dear all, I have datagrid control being data bind from database using webservice in which there are two columns called ColA and ColB. ColA is HyperlinkButton(DataGridTemplateColumn) and ColB is DataGridTextColumn. There is Click event for HyperlinkButton(ColA),in which I am trying get the content of both Column values(ColA and ColB).It is able to read ColA but not ColB from Code.Can anyone help me regarding this. Regards, Sundeep G
-
Dear all, I have datagrid control being data bind from database using webservice in which there are two columns called ColA and ColB. ColA is HyperlinkButton(DataGridTemplateColumn) and ColB is DataGridTextColumn. There is Click event for HyperlinkButton(ColA),in which I am trying get the content of both Column values(ColA and ColB).It is able to read ColA but not ColB from Code.Can anyone help me regarding this. Regards, Sundeep G
Sundeep Ganiga wrote:
.It is able to read ColA but not ColB from Code.
How are you doing this?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Sundeep Ganiga wrote:
.It is able to read ColA but not ColB from Code.
How are you doing this?
Mark Salsbery Microsoft MVP - Visual C++ :java:
In hyperlink click event,I can get that ColA value
Private Sub hllnkbtn_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
txtColA.Text = CType(e.OriginalSource, HyperlinkButton).Content
'txtColB.Text = CType(e.OriginalSource, DatagridTextColumn).Content 'This cannot be done here
End SubAnother Question,If You know the solution please respond.. http://www.codeproject.com/Messages/3268368/How-to-find-Duplicate-record-using-silverlight-web.aspx
-
In hyperlink click event,I can get that ColA value
Private Sub hllnkbtn_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
txtColA.Text = CType(e.OriginalSource, HyperlinkButton).Content
'txtColB.Text = CType(e.OriginalSource, DatagridTextColumn).Content 'This cannot be done here
End SubAnother Question,If You know the solution please respond.. http://www.codeproject.com/Messages/3268368/How-to-find-Duplicate-record-using-silverlight-web.aspx
Can you use the Datagrid.SelectItem property to get the data for the entire row?
Mark Salsbery Microsoft MVP - Visual C++ :java: