473,799 Members | 2,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiline in a datagrid and AlternatingBack Color

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 use 1 or several lines (so the size is not fixed).
The other question is about the AlternatingBack Color.
I change the color of the alternatingback color but when I add lines into my
datagrid, it only uses the same backcolor.

Stan
Nov 20 '05 #1
2 1624
Hi,

If you add a tablestyle change alternatingcolo r property of the
tablestyle instead of the datagrid.

Ken
-----------
"Stan Sainte-Rose" <st**@cyber972. com> wrote in message
news:uL******** ******@tk2msftn gp13.phx.gbl...
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 use 1 or several lines (so the size is not fixed).
The other question is about the AlternatingBack Color.
I change the color of the alternatingback color but when I add lines into my datagrid, it only uses the same backcolor.

Stan

Nov 20 '05 #2
Hi,

Row height
http://www.syncfusion.com/FAQ/WinFor...44c.asp#q1075q

Ken
--------------
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi,

If you add a tablestyle change alternatingcolo r property of the
tablestyle instead of the datagrid.

Ken
-----------
"Stan Sainte-Rose" <st**@cyber972. com> wrote in message
news:uL******** ******@tk2msftn gp13.phx.gbl...
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 use 1 or several lines (so the size is not fixed).
The other question is about the AlternatingBack Color.
I change the color of the alternatingback color but when I add lines into

my
datagrid, it only uses the same backcolor.

Stan


Nov 20 '05 #3

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

Similar topics

0
1571
by: Job Lot | last post by:
I have an Expense Data Entry form which contains a DataGrid showing various expense categories. There are three columns Description, Cash Exp, Credit Exp, where Description column is readonly. Users have to press a checkbox to specify whether they want to use DataGrid to provide break-up or provide total value in textbox. Now when checkbox is unchecked I am setting the Enabled property of DataGrid to False and vice versa. The problem is...
2
2107
by: Peter | last post by:
I have a DataGrid control on a form and I used the Auto Format feature to format the grid. The problem is now if I resize a column in my code I loose some of the formats - some of the grid colors returns to default values. Here is the code that I use to resize a column. DataGridTableStyle tableStyle = new DataGridTableStyle(); tableStyle.MappingName = "Language"; DataGridTextBoxColumn grdColStyle1 = new DataGridTextBoxColumn();...
3
3911
by: Quetzal | last post by:
Hello, I have a dataset populated using an XML file. The schema has hierarchical components. Let's say <a><b></b></a>. I have created a datagrid and I have assigned a datastyle and then gridcolumnstyle for all columns at the parent level. I have created a datastyle for every child level and I have assigned also gridcolumn styles to the components.
2
6414
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
2
2110
by: kerpal | last post by:
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!!
4
1830
by: Steve | last post by:
I am fairly new to VB.NET, and I am rewriting an application I wrote a while back, also in VB.NET. I aplied some new things I learned. Anyway, here is my problem....... I have a custom DataGrid with a buttonRow that does a delete function for me. Microsoft support helped me back then to get this done. Here is part of the code that creates the dataGrid: Dim ButtonColStyle As DataGridButtonColumn
5
5914
by: Genojoe | last post by:
I am using code from Help with two exceptions. (1) I increased the number of sample rows from 3 to 20, and (2) I anchored the datagrid to bottom of form so that I can change the size of the grid by changing the size of the form The code is at the following location in the January, 2004 help ms-help://MS.VSCC.2003/MS.MSDNQTR.2004JAN.1033/cpref/html/frlrfSystemWindowsFormsDataGridClassTopic.ht You can also find it by doing a search for...
4
4426
by: magmo | last post by:
Hi I have created a windows form that hold a datagrid, that datagrid gets it values from a stored procedure. My problem is that I have added a checkbox to the datagrid and applied some style to the datagrid. But the checkbox is always greyed out. Why is that, and what am I doing wrong? Here's my code...
7
5690
by: Dave | last post by:
Are there any add-on products or samples available that can do the following in an vb.net datagrid I want to compare 2 rows in a datagrid - one row from one database and another row for another database. So all the even rows would be from database one. All the odd rows would be from database two. Row one and two will have different formats and colors.
0
9689
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4148
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2942
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.