By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,701 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,701 IT Pros & Developers. It's quick & easy.

Datagrid gridline

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.