Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Making Custom border in DataGrid

Thread Tools

Making Custom border in DataGrid
Posts: n/a

I am using making an ASP.NET website using C# in Visual Studio 2003.

On the website I display a DataGrid which contains

- five columns, one with and item name and four with different prices
for the various items.
- Columnheader with item name and four different buying options
- A number of rows with items, sorted by manufactore

Now my problem is how to get the kind of borders in and around this

Here is what I would like to do:

- A thin border all the way around the DataGrid
- A thin border between the item column and the first price column
- A thin border between Columnheader and the first item in each row
- A thin border between each rows when the manufactore changes

It should look something like this
| Itemname | Price1 Price2 Price3 Price4 |
| Manufac1 |
| Man1 item1 | 34 343 23 23 |
| Man1 item2 | 44 545 34 54 |
| Manufac2 |
| Man2 item1 | 23 23 23 43 |
| Man2 item2 | 34 34 34 43 |

(I hope the above "image" is not completly messed up!)

Can anyone give me any ideas how to do this? I have tried using CSS
style sheets, but so far unsuccesfull.

Sren Augustesen

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
border-color: #003366; border-width: 2px; =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= HTML 64 07-30-2006 04:01 PM
Drop Down List Border Width vs Text Box Border Width Coder ASP .Net 1 06-24-2006 01:27 PM
row bottom border in inner table not matching up with row border in outer table phl HTML 1 06-08-2006 03:43 PM
Datagrid Border showing when I say no border tshad ASP .Net 0 01-31-2005 05:40 PM
Making new Flavors : Making a custom transferhandler for and drop applications Java 5 01-12-2005 11:10 AM