<DataGrid x:Name="DGMDStatus" AutoGenerateColumns="False" Height="440" HorizontalAlignment="Left" Margin="22,80,0,0" VerticalAlignment="Top" Width="800" BorderBrush="#FF000C21" BorderThickness="0.5" AlternatingRowremoved="#fff" HorizontalScrollBarVisibility="Hidden" CanUserAddRows="False" IsReadOnly="True"> <DataGrid.Columns> <DataGridTextColumn Header="Status Id" Width="200" Binding="{Binding StatusId}"/> <DataGridTextColumn Header="Status" Width="300" Binding="{Binding Status}"/> </DataGrid.Columns> </DataGrid>
DGMDStatus.ItemsSource = dbcon.sp_StatusMaster_SelectAll().ToList();
You can use a value-converter, for that purpose.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)