We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





31388 Jul 6,2005 06:38 PM UTC Jul 7,2005 08:17 AM UTC WinForms 2
Tags: GridControl
Jason Allen
Asked On July 6, 2005 06:38 PM UTC

Hi I am experiencing problems with cell merging in a virtual grid control. I initialise the grid control with grid.Model.MergeCellsMode = OnDemandCalculation|MergeRowsInColumn; I want all columns to be queried for cell merge. The only way I found to achieve this was to set the initial column count to the max number of columns I need and iterate the ColStyles collection setting MergeCell = RowsInColumn. The initial display of data works correctly. However, as I change the data in the grid, the QueryCanMergeCells events is repeatedly fired, but not for all cells in view. The result is that some cells are not correctly merged. QueryCellInfo is correctly fired for all cells so why not QueryCanMergeCells? How can I force the grid to fire the QueryCanMergeCells event for all visible cells? Best Regards Jason

Administrator [Syncfusion]
Replied On July 6, 2005 06:58 PM UTC

Does setting grid.TableStyle.MergeCell = RowsInColumn make it unnecessary to loop through the ColStyles in your code?

Jason Allen
Replied On July 7, 2005 08:17 AM UTC

Yes it does, it also appears to fix the event problem. Thank you very much! Jason. >Does setting > >grid.TableStyle.MergeCell = RowsInColumn > > >make it unnecessary to loop through the ColStyles in your code?


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon