473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

DataGrid Cell Border

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: cp@webland.ca Webland Inc. 136 Church St.
Oakville, Ontario L6J 1M9 Arcade | Search | Business Solutions
Nov 15 '05 #1
3 6681
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]
- ni**************@exisconsulting.com

"Chris" <cp@webland.ca> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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: cp@webland.ca Webland Inc. 136 Church St.
Oakville, Ontario L6J 1M9 Arcade | Search | Business Solutions

Nov 15 '05 #2
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 [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote
in message news:OC**************@TK2MSFTNGP12.phx.gbl...
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]
- ni**************@exisconsulting.com

"Chris" <cp@webland.ca> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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: cp@webland.ca Webland Inc. 136 Church St. Oakville, Ontario L6J 1M9 Arcade | Search | Business Solutions


Nov 15 '05 #3
Hello Chris,

I am also facing a similar problem. I hope you have solved the issue. Code you please explain me how to solve it or send some sample codes.



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: cp@webland.ca Webland Inc. 136 Church St.
Oakville, Ontario L6J 1M9 Arcade | Search | Business Solutions
Jun 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Billy Jacobs | last post by:
I am using a datagrid to display some data. I need to create 2 header rows for this grid with columns of varying spans. In html it would be the following. <Table> <tr> <td colspan=8>Official...
8
by: Gilles T. | last post by:
How I can get element ID in the edit mode of datagrid control? If I not in the edit mode, there are no problem. <asp:TemplateColumn ItemStyle-CssClass="grid_column_width_3"...
1
by: Vaclav Jedlicka | last post by:
Hi I need a datagrid on a page, but it is rendered with the style "border-collapse:collapse;". I do not need this style. It interferes with the settings in my CSS file. I tried to supress it...
4
by: Kristoffer Arfvidson | last post by:
Im trying to get access to a table in codebehind, because the information in this table is different depending on what it says in the database... So, either I have to access it from codebehind,...
2
by: Marty McDonald | last post by:
When setting certain datagrid properties with the IDE (as in the property window), they don't seem to take effect. For instance, Font Name. So I have to set these via code-behind at the cell...
13
by: Lyners | last post by:
I have a web page writen in ASP.NET that contains some javascript so that when a user presses a button, or edits a certain field in a datagrid, another cell in the datagrid is filled with a value....
3
by: Lyners | last post by:
I have a table within a cell of a datagrid. I am doing updates without postback to the server using Javascript. I have everything working, except referencing a table within the datagrid cell. ...
1
by: Arpan | last post by:
The output of a DataGrid is nothing but a HTML table. To color or change the width of the outer 4 borders of a DataGrid, one can use the properties "BorderColor" & "BorderWidth" respectively but...
7
by: julian.tklim | last post by:
Hi, I need to build an editable Datagrid with add & delete buttons on each row using javascript. DataGrid need not be pre-populated with values. To make the thing complicated, one of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.