Datagrid binding in WPF

后端 未结 3 1883
灰色年华
灰色年华 2020-11-27 16:56

I know this has been asked already but I have done almost everything what is suggested by developers.



        
3条回答
  •  离开以前
    2020-11-27 17:43

    try to do this in the behind code

       public diagboxclass()
       {
             List list = new List();
             list = GetObjectList();
             Imported.ItemsSource = null;
             Imported.ItemsSource = list;
       }
    
    
    

    Also be sure your list is effectively populated and as mentioned by Blindmeis, never use words that already are given a function in c#.

    提交回复
    热议问题