abdujalil  chuliev

abdujalil chuliev

  • 1.2k
  • 400
  • 38.8k

How can set datagrid column header name from a database row

Aug 23 2017 9:26 AM
I'm a beginner WPF programmer. There are only two columns(typeid, typename) in my 'type' table. There are 8 rows in the typename. I want those row cell data to be the column header name. How can I set datagrid column header name from a database row cell data?
  1. <DataGrid x:Name="dataGrid" HorizontalAlignment="Left" Margin="48,96,0,0" VerticalAlignment="Top" Width="1050">
  2.         </DataGrid>  


Answers (2)