I know that my datatable has data in it but I don't see it in my datagrid. here is my binding.
<DataGrid Grid.Row="1" Name="DataGrid4" AutoGenerateColumns="TRUE" CanUserAddRows="False" CanUserDeleteRows="False" CanUserReorderColumns="False" AlternatingRowBackground="LightBlue" ItemsSource="{Binding Path=thisData.thisFollowUp.thisP.pData.dataTable.DefaultView}"/>
It is my understanding that I do not need to notify WPF when the datatable data has changed. Any Ideas what I am missing? I will add more code if it is necessary.
If you set the DataContext
of the enclosing container for the DataGrid
you just need to call ItemSource = {Binding}
. You can set the DataContext
after you load the data in code behind. Examples
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다