WPF DataGrid Row add in codebehind
问题 I am from VB.Net WinForms comming. Now I wanted to write a small app in WPF, listing some files in a datagridview. I used WPF's DataGrid, created some Columns. And then failed to add my rows. Please, can you help me to select the right way to get my filenames, state-text and thumbnails added to the DataGrid Row? In VB.Net WinForms I can add a row like this: Datagridview1.Rows.add(Myvalue, "RowStateText", "Hello World", MyDate) In WPF's DataGrid I can add DataGrid1.Items.Add(New DataGridRow())