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

Formatting Cells

Thread ID:





72943 Apr 11,2008 11:36 AM UTC Apr 18,2008 01:35 PM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
David Ryan
Asked On April 11, 2008 11:36 AM UTC

Hi there,

I'm having a bit of trouble formatting cells on an ITable using VB.NET. I am populating my data into a Datatable and then importing the data into an ITable. I am then iterating through the ITable and formatting the cells with the appropriate font type. (Find Code Attached). What I would like to do is to apply another Font if the string "Not owned by COMPANY" is found in one of the cells. I thought that the following would work but I just keep gettign an empty string:

If (ComponentsTable.Rows(i).Cells(j).Value = "Not owned by COMPANY") Then
ComponentsTable.Rows(i).Cells(j).Style.TextFont = ChapterItalicsFontBoldRed
End If

Any ideas what I am doing wrong here?


Code Snippet.zip

Yavanaarasi G [Syncfusion]
Replied On April 18, 2008 01:35 PM UTC

Hi Dave,

Sorry for the delay in responding.

I am not able to reproduce the issue that you mentioned here. You had send only the code snippet. I had tried to run your code but not able to run it. I have created a simple sample and test this issue, here it works fine. Please refer the below code that I tried to reproduce it:

If (table.Rows(i).Cells(i).Value = "Not owned by COMPANY") Then
table.Rows(i).Cells(i).Style.TextFont = ChapterBoldFont
End If

Please refer the sample in the below link:

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample and send us the modified sample so that we could sort out the cause of the issue and provide you a solution?



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