Border for some cells of a grid in WPF
问题 I have a data grid. I want to create several borders - not for the entire grid, but for some of the cells. For example: column 2 row 2 and 3 column 4 row 3 and 4. Attaching my XAML code. Thanks in advance for answering. <Grid Grid.Column="1"> <Grid.RowDefinitions> <RowDefinition Height="38"></RowDefinition> <RowDefinition Height="38*"></RowDefinition> <RowDefinition Height="38*"></RowDefinition> <RowDefinition Height="37*"></RowDefinition> <RowDefinition Height="38*"></RowDefinition>