Hi.
I Want to Merge Cell with the Same Activew Row cells Conditions
For Example
How Can I Come Ture this Function.
Thanks!
Check out the MergedCellStyle property on the Override.
Hi Mike,
I want to merge the cells horizontally. As u said about MergeCellStyleProperty it merges the cells only vertically.Can u pls tell any option for horizontal merging.Pls its urgent else my boss will kill me
Thanks in advance.
Hi,
The screen shot you posted here shows only vertical cell merging, not horizontal.
There is no functionality in the WinGrid to merge cells horizontally in the same row.
thnx for ur fast rply Mike. Actually i had got a solution for this i will put it over here if somebody needs den dis will b helpfull..It works.
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
Infragistics.Win;
Infragistics.Win.UltraWinGrid;
System.Drawing;
System.Diagnostics;
IUIElementCreationFilter
{
#region
IUIElementCreationFilter Members
parent)
;
&& row.HasChildElements)
>();
)row.ChildElements[0];
i = 1; i < row.ChildElements.Count; i++)
))
)row.ChildElements[i];
(cell.Cell.Value.ToString() == nextCell.Cell.Value.ToString())
)
s = cell.Rect.Size;
s.Width += nextCell.Rect.Width;
cell.Rect =
(cell.Rect.Location, s);
nextCell.Rect =
(0, 0, 0, 0);
remcell.Add(nextCell);
}
else
cell = nextCell;
remcell)
row.ChildElements.Remove(rc);
//throw new NotImplementedException();
#endregion
this class can b called from Intialize event like dis :
grdFactorywiseDet.CreationFilter =
new MyCreation();
Hello Sumeet,
This code really works, thanks for putting this code on the forum.
This code really helped me merging cells horizontally.....great....!!!
Great work Sumeet and thank you very much...!!!
Thanks and Regards,
Arshad Naik