473,387 Members | 1,899 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,387 software developers and data experts.

Datagrid gridline

Hi, there

My application needs a datagrid with no gridline
displayed.If the datagrid is dragged into a winform, we
can easily set the gridlinecolor to be the same as
datagrid's background color or set gridlinestyle to be
none. However, things are different when I create a
datagrid at run time though I have set its gridlinestyle
to be none.The gridline are still there.

Can some one tell me what's wrong with that?
Thanks!

Nov 20 '05 #1
2 2292
Tracey,

If you are adding a tablestyle to the grid try setting the
tablestyles gridlinestyle instead.

Ken
----------------
"Tracey" <jo********@hotmail.com> wrote in message
news:0c****************************@phx.gbl...
Hi, there

My application needs a datagrid with no gridline
displayed.If the datagrid is dragged into a winform, we
can easily set the gridlinecolor to be the same as
datagrid's background color or set gridlinestyle to be
none. However, things are different when I create a
datagrid at run time though I have set its gridlinestyle
to be none.The gridline are still there.

Can some one tell me what's wrong with that?
Thanks!

Nov 20 '05 #2
Exactly.
It works.
thanks a lot!
-----Original Message-----
Tracey,

If you are adding a tablestyle to the grid try setting thetablestyles gridlinestyle instead.

Ken
----------------
"Tracey" <jo********@hotmail.com> wrote in message
news:0c****************************@phx.gbl...
Hi, there

My application needs a datagrid with no gridline
displayed.If the datagrid is dragged into a winform, we
can easily set the gridlinecolor to be the same as
datagrid's background color or set gridlinestyle to be
none. However, things are different when I create a
datagrid at run time though I have set its gridlinestyle to be none.The gridline are still there.

Can some one tell me what's wrong with that?
Thanks!

.

Nov 20 '05 #3

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

Similar topics

3
by: Utada P.W. SIU | last post by:
Dear All, I have writing a ASP that export an Excel file by using response.contentType = "application/vnd.ms-excel" I can export an Excel However, the grey color gridline is missed, how can I...
0
by: Michael Chong | last post by:
My Datagrid displays few pages of row data with gridline nicely shown. But when I do print to hardcopy, start from the second page of the printing, gridlines are unable to shown out on the...
0
by: MattC | last post by:
Hi, I have place the following code in my ItemDataBound event: The problem I have is that when I select a row for editing using the edit command it no longer changes the CSSClass to the one...
2
by: Tracey | last post by:
I used the following code to get rid of gridline of datagrid1. However, the gridline are still there. Can someone tell me what's wrong with that? Dim tablestyle as new tablestyle with...
1
by: Lonewolf | last post by:
hi all, just want to find out if it is possible to set the gridline of individual cell in a listview using C#. Reason for this is I need to have a listview which has fixed number of columns and...
0
by: gerry.brennan | last post by:
Hi, Does anyone know if it is possible to turn just "Vertical gridlines" a different colour in a datagrid. Gerry.
6
by: gerry.brennan | last post by:
Hi is there a way to change the color of the vertical gridline in a datagrid or listview
3
by: Alex Maghen | last post by:
I'd like there to be a border around each row of my data-grid but NOT between the columns. I've tried setting BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"...
2
by: Arpan | last post by:
How do I change the color of the GridLines in a DataGrid? I don't find any property to change the GridLines color in a DataGrid. I tried using HeaderStyle-BorderColor as well as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.