Hi Constantin,
Thank you for using Syncfusion products.
We have analyzed your requirement and you can open a new window when right click on a stacked column by using MouseRightButtonDown event and shown in the below code snippet,
Code Snippet:
VisualContainer visualContainer;
void dataGrid_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
var point = e.GetPosition(this.dataGrid);
var propertyInfo = dataGrid.GetType().GetProperty("VisualContainer", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
visualContainer = propertyInfo.GetValue(dataGrid) as VisualContainer;
var rowColumnIndex = visualContainer.PointToCellRowColumnIndex(point);
var headerRowIndex = dataGrid.GetHeaderIndex();
if (rowColumnIndex.RowIndex < headerRowIndex)
{
Window newWindow = new Window();
newWindow.ShowDialog();
}
} |
We have prepared a sample to achieve your requirement and please find the sample from the below location,
Sample Link: StackedHeader.zip
Kindly let us know if you require any further assistance on this.
Regards,
Jayapradha