473,509 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please help me in showin multiline in cell of datagridview

77 New Member
Hi all,
Is there any way I can show all the value (String) of the datagridview cell in one cell without any need to scroll.
I mean is there any way datagrid cell increase the cell height automatically when the cell value is more than actual size. Something like multiline when it is needed.
Aug 14 '08 #1
3 1780
Sep410
77 New Member
Hi All,
I think it’s better to explain my problem in more details.
I have datagriview which is going to show a dataset from sql database.
The problem is sometimes one of my columns contains long long text I need to split this text to 2 parts because my client don’t want to scroll and see whole text he wants to see whole text in the same cell of the datagrid but in 2 line. Like this example


Col1 Col2 Col3
1 The former manager of Prince George's civilian staff at the detachment…01/01/2008
2 Ken Corrigan told CBC News. 08/10/2006
I want to show the grid like this:


Col1 Col2 Col3
1 The former manager of Prince George's civilian staff at the detachment 01/01/2008
told CBC News he was subject to dehumanizing harassment by RCMP
Supt. Dahl Chambers.
2 Ken Corrigan told CBC News. 08/10/2006

Please help me.
Aug 15 '08 #2
Curtis Rutland
3,256 Recognized Expert Specialist
You can define the column's width, can't you? Try defining the width, and see if it automatically sets the height.
Aug 15 '08 #3
Curtis Rutland
3,256 Recognized Expert Specialist
Please do not double post your questions. I understand that in this case you wanted to clarify, but you can clarify in a response to your original thread. If you feel like your thread has been neglected, replying to it will "bump" it back to the top. If you cannot find your original thread, please check in the "My Subscriptions" link at the top of the page.

I have merged your threads.

MODERATOR
Aug 15 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4929
by: James | last post by:
wxpython 2.5.3 hi, anyone know how to make a multiline cell editor for wxgrid? thank you :) best regards, James
3
14555
by: Rich | last post by:
Hello, If I want to update data displayed in a datagrideview/datagridview cell, how can I determine what cell I am updating? I am looking at the click event below, for example. Can I get...
3
25020
by: Richard Lewis Haggard | last post by:
I have a DataGridView which has a cell that is going to contain what might be a large amount of text data. The UI designed has decreed that each row will have a button that toggles the row's...
1
1911
by: Dranizz | last post by:
I want to set the value of a cell in a datagridview. DatagridView.CurrentRow.Cells(CEllName).value = "Blabla" When I do this in code and when it's the first cell I edit in a new row, it does...
0
2146
by: =?Utf-8?B?UmljaA==?= | last post by:
In a datagridview, the first column header cell is columnHeader(0), which is immediately to the right of the Top Left Corner Select All cell. And the first RowHeader cell is RowHeaderCell(0) which...
1
2165
by: Ahmed Yasser | last post by:
Hi all, i have a problem with the datagridview sorting, the problem is a bit complicated so i hope i can describe in the following steps: 1. i have a datagridview with two columns...
1
13715
by: zacks | last post by:
Using VS 2005. I have an app that has a DataGridView control. This control has two columns, the first column is a standard TextBox, and the second column is a CheckBox. I am having difficulty...
12
13567
by: cj | last post by:
When viewing a datatable in a datagridview one of the columns in it is a "note" field which can be quite long. I would like to have the note field of the currently selected row of the datagrid...
1
16960
by: Andrus | last post by:
I have Text box controls and DataGridView control in WinForms form. DataGridview contains custom ComboBox columns and standard TextBox columns. Edit mode is EditOnEnter. When focus is moved...
0
7237
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
7347
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,...
0
7416
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...
1
7073
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
7506
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
4732
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
3218
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...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
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...

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.