We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon