I have the following XAML code:
<sdk:DataGrid Margin="58,8,52,18" Name="dataGridTickets"> <sdk:DataGrid.Columns> <sdk:DataGridTextColumn x:Name="ticketNoColumn" Header="Ticket No." IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatRowColumn" Header="Seat Row" IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatNumberColumn" Header="Seat Number" IsReadOnly="True" Width="SizeToHeader"/> </sdk:DataGrid.Columns> </sdk:DataGrid>
I would like to enter manual data into the grid programmatically, how can I do this?
thanks
Working solution
Programmatically add rows to DataGrid WPF
source share