New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.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; }
>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; >} >