create row a copy(style) of existing

I want to add a row to a grid (virtual) and have its cells styles, sizes,colors mimic an existing row.. whats the easiest way to do this

1 Reply

AD Administrator Syncfusion Team September 18, 2005 06:55 AM UTC

Hi Kevin, You can try handling this in the QueryCellInfo. When you add the new row, try setting its StyleInfo similar to an exsisting row. Something like, private void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { if(e.RowIndex == LastRow) { e.Style.ModifyStyle(this.gridControl1.RowStyles[2], Syncfusion.Styles.StyleModifyType.Override); e.Handled = true; } } to see if that helps. Best regards, Jay N

Loader.
Up arrow icon