473,467 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

AlternatingBackColor DataGridTableStyle in DataGrid

Hi all,

1. Could anyone pls clarify the difference between setting the
AlternatingBackColor property in DataGridTableStyle and in DataGrid??

2. How come BackColor and AlternatingBackColor are both associated with the
ODD-numbered rows of the grid as stated in msdn??

Thank you and happy new year!!
Nov 20 '05 #1
2 2083
Hi,

1) Once you add a tablestyle to your datagrid you have to change the
tablestyles alternatingbackcolor property.

2) ? backcolor even rows alternatingbackcolor odd rows.
http://msdn.microsoft.com/library/de...colortopic.asp

Ken
----------------------
"kerpal" <l@m.n> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
Hi all,

1. Could anyone pls clarify the difference between setting the
AlternatingBackColor property in DataGridTableStyle and in DataGrid??

2. How come BackColor and AlternatingBackColor are both associated with
the
ODD-numbered rows of the grid as stated in msdn??

Thank you and happy new year!!

Nov 20 '05 #2
Thanks for your reply.
I think I meant to point out that DataGridTableStyle.BackColor and
DataGridTableStyle.AlternatingBackColor affect the odd-numbered rows of the
grid according to msdn.
http://msdn.microsoft.com/library/de...ColorTopic.asp

http://msdn.microsoft.com/library/de...ColorTopic.asp

I guess additional tests are needed to confirm this behaviour/description.

"Ken Tucker [MVP]" <vb***@bellsouth.net> ¦b¶l¥ó
news:OV**************@TK2MSFTNGP10.phx.gbl ¤¤¼¶¼g...
Hi,

1) Once you add a tablestyle to your datagrid you have to change the tablestyles alternatingbackcolor property.

2) ? backcolor even rows alternatingbackcolor odd rows.
http://msdn.microsoft.com/library/de...colortopic.asp
Ken
----------------------
"kerpal" <l@m.n> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
Hi all,

1. Could anyone pls clarify the difference between setting the
AlternatingBackColor property in DataGridTableStyle and in DataGrid??

2. How come BackColor and AlternatingBackColor are both associated with
the
ODD-numbered rows of the grid as stated in msdn??

Thank you and happy new year!!

Nov 20 '05 #3

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

Similar topics

3
by: Rxd | last post by:
I have a Datagrid that should have a couple of hidden columns. I used a DataGridTableStyle to hide the columns and it was working fine except I needed to prevent the DataGrid from allowing new rows...
2
by: Scott | last post by:
Hi all. A few days ago i ask this question and got a good quick response. I tried out what they said and it worked. However I have now come to try the same thing in another program and it...
2
by: Carlos | last post by:
Does DataGridTableStyle work in ASP.net ? any time I'm tring to define a varibale lke DataGridTableStyle MyStyle = new DataGridTableStyle(); it give me "The Type or name sapce...
2
by: Stan Sainte-Rose | last post by:
Hi, How can I display a multiline content into a Datagrid column ? The datagrid that I use, displays 2 columns. The first display a code , and the second, a description. The description can...
1
by: abdar | last post by:
what is the difference between DataGrid.AlternatingBackColor and DataGridTableStyle.AlternatingBackColor ??
2
by: Brett Romero | last post by:
I can't find what exactly I'm doing wrong that the following DataGridTableStyle is not working on my table. The result set returns 21 columns. I'm only formatting 5 via the TableStyle. I thought...
4
by: Brett Romero | last post by:
I have the following DataGridTableStyle: DataGridTableStyle gridTableStyle = new DataGridTableStyle(); gridTableStyle.MappingName = "myStyle"; DataGridTextBoxColumn dgsc = new...
7
by: Mitchell S. Honnert | last post by:
Is there an equivalent of the DataGrid's DataGridTableStyle for the DataGridView? If not, is there an easy way to duplicate the DataGridTableStyle's functionality for the DataGridView? Here's...
0
by: Guillaume | last post by:
Hi, I have an ArrayList filled with many Alarm object ( i will ad next this class definition). I use this arraylist as a datasource for my datagrid. I want to apply some table style, but it does...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
1
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.