I am using XtraGrid in my app. I want to group some cells togethere and replace them with group name. Following is the description.
I above image I have selected few cells from Fir开发者_运维问答st columns. Now, from context menu when I will click on "Group", I will popup up a dialog for group name. Now here onwards the problem is.
I want to replace the cell containts logically with the group name. So in grid, for first column's selected cells, but while viweing it should appear as single cell. I have tried the cell merging feature of the xtragrid but that disbales the row selection feature. How to do this?
The grid shown above is bounded grid, so if I tried to do grouping for lets say Integer type of column, then how can I replace the group name which is string in integer column? is this possible in grid?
Can I add the unbounded column in bounded grid?
Please help.
Thanks, Omky
The question is 4 years old, but for those who googled this and have the same questions, you could try this:
- You are right: To show cells of the first column with same content as a single cell use merging: Set
Column1.OptionsColumn.AllowMerge
to true. You can influence the merging behaviour using the ViewsCellMerge
Event. As you do not have a continouos row in case of a merged cell, you cannot use RowSelect. - To use Grouping you can call
Column1.Group()
. To specify the value wich is taken for comparison you can specify theColumn1.GroupInterval
to e.g.Value
orDisplayText
. The Cells DisplayText can be customized using theCustomColumnDisplayText
event. - As far as I know it is not possible to add an unbound colmn to a BandedgridView. Why would you want to do this?
Generally there is a fast and qualified support at DevExpress you can contact.
精彩评论