or
| int _selIndex = dataGrid.SelectedIndex; |
| MyCollection _data1 = (MyCollection)dataGrid.Items[_selIndex - 1]; |
| MyCollection _data2 = (MyCollection)dataGrid.Items[_selIndex]; |
| MyCollection _data3 = (MyCollection)dataGrid.Items[_selIndex + 1]; |

| <t:GridViewDataColumn DataMemberBinding="{Binding grade}" Header="Grade" EditTriggers="CellClick"> |
| <t:GridViewDataColumn.CellEditTemplate> |
| <DataTemplate> |
| <ComboBox IsEditable="True" Text="{Binding grade, UpdateSourceTrigger=LostFocus, Mode=TwoWay}"/> |
| </DataTemplate> |
| </t:GridViewDataColumn.CellEditTemplate> |
| </t:GridViewDataColumn> |
| private void gridMain_MouseDoubleClick(object sender, MouseButtonEventArgs e) |
| { |
| GridViewCell currentCell = (GridViewCell) gridMain.CurrentCell; |
| if (currentCell.DataColumn.DisplayIndex > 17) |
| { |
| if (currentCell.Foreground == Brushes.Red) |
| { |
| currentCell.Foreground = Brushes.Black; |
| currentCell.Value = currentCell.Value.ToString().Replace("*", ""); |
| } |
| else |
| { |
| currentCell.Foreground = Brushes.Red; |
| currentCell.Value = currentCell.Value.ToString() + "*"; |
| } |
| } |
| } |
<
ReferenceControls:AnimatingExpanderControl InitialExpandedLength="180" Margin="0" Style="{StaticResource AnimatingExpanderControlStyle}" ExpandDirection="Up" Title="Patient Info" Background="White" Grid.Row="0" >
<!--<Viewbox Stretch="Uniform">-->
<StackPanel Orientation="Vertical" >
<ReferenceControls:PatientBanner x:Name="test"/>
</StackPanel>
<!--</Viewbox>-->
</ReferenceControls:AnimatingExpanderControl>



I am evaluating the DataGrid you offer and I am trying to determine if it is possible to have multiple column headers on the grid. In other words the user can stack columns on top of other columns when reordering. Thank you
Keith Williams