Hi Martin,
Thank you for contacting Syncfusion Support.
Query 1:
We have analyzed your query, as per your requirement we have merged the columns C1 + C2 and C3 + C4 + C5 based on ColumnIndex by using QueryCoveredRange event trigger. Please find the following code example.
Grid.QueryCoveredRange += Grid_QueryCoveredRange;
void Grid_QueryCoveredRange(object sender, Syncfusion.UI.Xaml.Grid.GridQueryCoveredRangeEventArgs e) { if (e.RowColumnIndex.ColumnIndex == 2) { e.Range = new CoveredCellInfo(2, 3, e.RowColumnIndex.RowIndex, e.RowColumnIndex.RowIndex); e.Handled = true; } else if (e.RowColumnIndex.ColumnIndex == 4) { e.Range = new CoveredCellInfo(4, 6, e.RowColumnIndex.RowIndex, e.RowColumnIndex.RowIndex); e.Handled = true; } } |
You can download the sample from the following location:
https://www.syncfusion.com/downloads/support/forum/120820/ze/TestWPF1259879898
Query 2:
A support incident to track the status of this query has been created under your account. Please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Elangovan S
void Grid_QueryCoveredRange(object sender, Syncfusion.UI.Xaml.Grid.GridQueryCoveredRangeEventArgs e) { if (Grid.GetLastDataRowIndex() == e.RowColumnIndex.RowIndex) { if (e.RowColumnIndex.ColumnIndex == 2) { e.Range = new CoveredCellInfo(2, 3, e.RowColumnIndex.RowIndex, e.RowColumnIndex.RowIndex); e.Handled = true; } else if (e.RowColumnIndex.ColumnIndex == 4) { e.Range = new CoveredCellInfo(4, 6, e.RowColumnIndex.RowIndex, e.RowColumnIndex.RowIndex); e.Handled = true; } } |