We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Show serval lines in DataGrid Cell?

Thread ID:





4105 Apr 29,2003 05:06 AM UTC May 9,2003 08:22 AM UTC WinForms 4
Tags: FAQ
Asked On April 29, 2003 05:06 AM UTC

If a cell in a datagrid has too long text, is it possible to show text in several lines?

Administrator [Syncfusion]
Replied On May 4, 2003 12:49 PM UTC

> If a cell in a datagrid has too long text, is it possible to show text in several lines? Private Sub MakeMultiLineTextBox() Dim Table As String = "MyTable" Dim Column As String = "MyColumn" Dim myGridTextBox As DataGridTextBox Dim myColumnTextBoxColumn As DataGridTextBoxColumn myColumnTextBoxColumn = CType(DataGrid1.TableStyles(Table).GridColumnStyles(Column), DataGridTextBoxColumn) myGridTextBox = CType(myColumnTextBoxColumn.TextBox, DataGridTextBox) myGridTextBox.Multiline = True myGridTextBox.ScrollBars = ScrollBars.Vertical myGridTextBox.BackColor = System.Drawing.Color.White End Sub

Replied On May 5, 2003 11:22 AM UTC

Thanks for your reply. As your sample, it works for those String that has "\n" or "\r", but there isn't this character in my text, then how to do?

Administrator [Syncfusion]
Replied On May 7, 2003 03:55 PM UTC

I'm not sure, but I think you have a long string and want to show that on different lines? If so, you could make a little function for that, that every so much characters puts a vblf <- Linefeed in the string.

Replied On May 9, 2003 08:22 AM UTC

Yes, but one thing I don't know. How to set any Row's height?


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon