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

Grid to word

Thread ID:





64389 Jul 19,2007 10:35 AM UTC Jul 21,2007 02:51 AM UTC WinForms 1
Tags: DocIO
Asked On July 19, 2007 10:35 AM UTC

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 21, 2007 02:51 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the 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