No.
I want to copy the entire gridcontrol with row headers, col headers to a new grid. If i use the above code for all rows i am not getting it for row headers and col headers.
Thanks in advance
>If you want to copy a cell from grid1 to grid2 and have it move all the possible style information over, then you need to make sure the table, row and column styles get set in addition to the cell style. Here is a button handler that will move take cell 2,2 in grid 1 and move it to cell 2,2 in grid 2 in this manner. It uses a helper method to compose the combined style to set into grid 2. Is this what you needed?
>
>
>private void button1_Click(object sender, System.EventArgs e)
>{
> this.gridControl2[2,2] = GetCompositeStyle(2, 2, this.gridControl1);
>
> this.gridControl2.Refresh();
>}
>
>private GridStyleInfo GetCompositeStyle(int row, int col, GridControl grid)
>{
> GridStyleInfo style = new GridStyleInfo(grid.TableStyle.Store);
> style.ModifyStyle(grid.ColStyles[col], Syncfusion.Styles.StyleModifyType.Override);
> style.ModifyStyle(grid.RowStyles[row], Syncfusion.Styles.StyleModifyType.Override);
> style.ModifyStyle(grid[row, col], Syncfusion.Styles.StyleModifyType.Override);
> return style;
>}
>