DataGrid Cell Border

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hello,
Does anyone know how to have cells in a datagrid with the same value that
are next to each other have a black border around them. I would like to be
able to make them appear as though they are one cell. I have done this in
an overrided paint method for the custom DatagridTextBoxColumn, however
there is a flicker when the paint event is fired.

Any help would be appreciated

- Chris

Chris
Pennycook ------------------------------------------------------------------
-------- Chris Pennycook Software Developer Webland Inc. Tel: (905) 337-7934
x25 Fax: (905) 337-8855 e-mail: (e-mail address removed) Webland Inc. 136 Church St.
Oakville, Ontario L6J 1M9 Arcade | Search | Business Solutions
 
Chris,

You will have to override the data grid text box column as you are
doing.

Are you double-buffering your output, or are you just painting on the
graphics instance that is being passed to you?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Chris said:
Hello,
Does anyone know how to have cells in a datagrid with the same value that
are next to each other have a black border around them. I would like to be
able to make them appear as though they are one cell. I have done this in
an overrided paint method for the custom DatagridTextBoxColumn, however
there is a flicker when the paint event is fired.

Any help would be appreciated

- Chris

Chris
Pennycook ------------------------------------------------------------------
 
Nicholas,
Thank you for your quick response. We are currently not using double
buffering. We are doing the base.paint method and then drawing the lines
for the borders after. We have found that if we do the base.paint after the
custom line drawing it overwrites our lines with the gridlines of the
control. Could you please explain how to use double buffering?

- Chris




Nicholas Paldino said:
Chris,

You will have to override the data grid text box column as you are
doing.

Are you double-buffering your output, or are you just painting on the
graphics instance that is being passed to you?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Chris said:
Hello,
Does anyone know how to have cells in a datagrid with the same value that
are next to each other have a black border around them. I would like to be
able to make them appear as though they are one cell. I have done this in
an overrided paint method for the custom DatagridTextBoxColumn, however
there is a flicker when the paint event is fired.

Any help would be appreciated

- Chris

Chris
Pennycook ------------------------------------------------------------------
 
Back
Top