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.
Unfortunately, activation email could not send to your email. Please try again.

Grid to word

Thread ID:





64389 Jul 19,2007 06:35 AM Jul 20,2007 10:51 PM Windows Forms 1
Tags: DocIO
Asked On July 19, 2007 06:35 AM

hi, wht is the problem in this code.actually i am trying to assign each individual grid cell colour to table individual cell in word document.plz help me.

row.Cells[j - 1].CellFormat.BackColor = Color.FromArgb(this.gridControl[i, j].BackColor.ToArgb());

Sarath Kumar G [Syncfusion]
Replied On July 20, 2007 10:51 PM

Hi Sravan,

Thank you for your interest in Syncfusion products.

I am afraid I am unable to reproduce the issue. I was able to set the backcolor of gridcontrol to the backcolor of the table generated in the word document. I created a datatable with two rows and two columns. I applied the backcolor of the gridcontrol to the column of the datatable and I was able to apply the backcolor.This can be achived by using the following code snippet;


row_0.Cells[0].CellFormat.BackColor = Color.FromArgb(this.gridControl1[1, 1].BackColor.ToArgb());

Here is the sample for your reference.


Please let me know for further help.



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.

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.