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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

create row a copy(style) of existing

Thread ID:





34814 Sep 16,2005 11:34 AM UTC Sep 18,2005 06:55 AM UTC WinForms 1
Tags: GridControl
Kevin Vickers
Asked On September 16, 2005 11:34 AM UTC

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

Administrator [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon