This is a migrated thread and some comments may be shown as answers.

Q2 2007 SP1 GridView Cell Max Text Length

1 Answer 24 Views
GridView
This is a migrated thread and some comments may be shown as answers.
maydaytx
Top achievements
Rank 1
maydaytx asked on 05 Dec 2007, 09:53 PM
The GridView throws a general GDI+ exception when a string of length 2^16 or greater is bound to the row.

Here is an example:

using System.Text; 
using System.Windows.Forms; 
 
namespace TelerikGrid 
    public partial class Form1 : Form 
    { 
        public Form1() 
        { 
            InitializeComponent(); 
 
            StringBuilder text = new StringBuilder(65536); 
            for (int i = 0; i < 65536; ++i) text.Append('B'); 
 
            GridText gridText = new GridText(); 
            gridText.Text = text.ToString(); 
 
            radGridView1.DataSource = new GridText[] {gridText}; 
        } 
    } 
 
    public class GridText 
    { 
        private string _text = string.Empty; 
 
 
        public string Text 
        { 
            get { return _text; } 
            set { _text = value; } 
        } 
    } 

~DuckLeg
 |
 |
/|\

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 07 Dec 2007, 05:57 PM
Hello maydaytx,

Thank you for reporting this issue. We managed to reproduce it locally and we will do our best to fix it in the upcoming Q3 version later this month.

Don't hesitate to contact us if you have other questions.
 

Regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
maydaytx
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or