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

The Skip property of the BeginCellLayout event

Thread ID:





98127 Feb 8,2011 01:35 PM UTC Feb 23,2011 09:33 AM UTC WPF 3
Tags: PDF
Administrator [Syncfusion]
Asked On February 8, 2011 01:35 PM UTC


I'm trying to use the BeginCellLayout/EndCellLayout event to replace the numeric value with an image. This work almost fine.

My problem is that if I set the Skip-property of the event args to True (to avoid having the numeric value from the ADO Datatable displaying in the cell), the CellStyle is also omitted...

So, when I, in the EndCellLayout draw my image in the cell, the image is rendered just fine, but I have no CellStyle for the cell.

So my question is:

Is it possible to Skip the numeric value (or at least set it to blank text) without skipping the cellstyle?


Priyadharshini J [Syncfusion]
Replied On February 10, 2011 07:30 AM UTC

Hi Jon,

Thank you for your interest in syncfusion products.

The skip property in the BeginCellLayout event is to skip the specified cell, that is, the cell itself is not drawn. As the specified cell is not drawn, the cell style cannot be preserved. We can place the image instead of numeric value, only by drawing the image over the numeric value using the "EndCellLayout event".

Sample for the same is placed in the location below:

Kindly try this and let us know if you have any queries.


Jon Andersen
Replied On February 22, 2011 08:07 PM UTC

Hi Priyadharshini!

Thank you for the clarification.

I see what you mean, and your solution would do the trick.

Actually, I went for the PdfGrid instead (using the BackgroundImage on the CellStyle to represent the Image cell).

The PdfGrid was actually easier and more pleasant to work with in my scenario (plus it is supported in Silverlight, which is a big issue for me).



Geetha M [Syncfusion]
Replied On February 23, 2011 09:33 AM UTC

Hi Jon,

Glad to hear that the solution works for you.

Please let us know if you have any other questions.



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