HA
haneefm
Syncfusion Team
May 3, 2007 06:26 PM UTC
Hi Gert,
Thank you for your update.
Is it possible for you to upload us a minimal sample to reproduce the issue here? This will help us to analyse the issue further.
Best regards,
Haneef
HA
haneefm
Syncfusion Team
May 3, 2007 10:36 PM UTC
Hi Gert,
One way you can do this by handling the DrawCellDisplayText event and use e.Graphics.DrawString method to draw barcode in a grid cell. Please try the below code and let me know if this helps.
void gridControl1_DrawCellDisplayText(object sender, Syncfusion.Windows.Forms.Grid.GridDrawCellDisplayTextEventArgs e)
{
GridControl grid = sender as GridControl;
if (grid.PrintingMode)
{
e.Graphics.DrawString(e.DisplayText, new Font("3 of 9 Barcode", 18f), new SolidBrush(Color.Black), e.TextRectangle.Location);
e.Cancel = true;
}
}
Best regards,
Haneef