GridControl - Painting in a cell

Hello, I am in need of painting something using some kind of Graphics tool, directly into the cells of the grid, but I would like to do it in a function or method, rather than in an event. Can anyone help me?, I would be painting text into the cells, because the text has to be placed in a manner that is,to my knowledge, impossible with the normal text fields. --------------- | Title | | | | 999 - (999) | --------------- the problem is, I must be able to change all the three informations seperatly. That is why I want to paint them in. (and repaint to refresh when the data changes)

3 Replies

PI Pierre-Luc February 16, 2006 08:04 PM UTC

if html code is ok here, this should be the real positions --------------- |   Title    | |             | | 999 - (999) | ---------------


ST stanleyj Syncfusion Team February 17, 2006 02:40 PM UTC

Hi Pierre, Is this not easier to format couple of cells to get the desired output. Using CoveredRanges to the neighboring cells, will make those cells as single cell if that is needed. this.gridControl1[3,3].Borders.Bottom = new GridBorder(GridBorderStyle.None); this.gridControl1[4,3].Borders.Bottom = new GridBorder(GridBorderStyle.None); this.gridControl1[3,3].Text = "Title"; this.gridControl1[4,3].Text = ""; this.gridControl1[5,3].Text = "999-(999)"; this.gridControl1.ColStyles[3].HorizontalAlignment = GridHorizontalAlignment.Center; Best regards, Stanley


PI Pierre-Luc February 17, 2006 02:53 PM UTC

Wow, it worked! ^_^ thanks a lot Stanley best regards, P-L

Loader.
Up arrow icon