Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
xamdatagrid's cell value can't display
posted

(sorry for my bad english)

when i user binding:

xaml:

 <Grid Name="Fgrid_bjDetail">

XamTextEditor Name="D_Fxte_Remark"  Text="{Binding REMARK}"

 </Grid >

code:

Private Sub xdg_ImpForecast_SearchList_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles Fxdg_ImpForecast_SearchList.MouseDoubleClick

Fgrid_bjDetail.DataContext = CType(xdg_ImpForecast_DetailList.ActiveRecord, DataRecord).DataItem

    End Sub

...

    Private Sub D_Fxte_Remark_TextChanged(ByVal sender As Object, ByVal e As System.Windows.RoutedPropertyChangedEventArgs(Of String)) Handles D_Fxte_Remark.TextChanged
'''''''can get cell value

  Debug.Print(Now.ToString & "---" & Fxdg_ImpForecast_detailList.GetCellValue("REMARK") & "---")

    End Sub

 

but in Form xamdatagrid's cell value can't display

 

note: if i clicked the xamdatagrid and xamdatagrid  lost focus,cell value can display !

wondering.....

thanks!

  • 69686
    posted

    Hello,

    I was not able to understand exactly where the problem is - there is too much code missing, but I think that the issue is coming from the fact that in some cases the XamDataGrid does not have an ActiveRecord and that is why you can't get the value.