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

DataGridTextBoxColumn maxlength

Thread ID:





674 Jul 25,2002 05:52 AM UTC Jul 27,2002 07:01 AM UTC WinForms 1
Tags: FAQ
Vipul Bhatt
Asked On July 25, 2002 05:52 AM UTC

while adding tablestyles to a datagrid how do i set the max length of the column.

Clay Burch [Syncfusion]
Replied On July 27, 2002 07:01 AM UTC

If you are adding DataGridTextBoxColumn objects to your DataGridTableStyle, then you can set the MaxLength property on the TextBox property of the DataGridTextBoxColumn.
' Add a second column style.
  Dim TextCol As DataGridTextBoxColumn
  TextCol = New DataGridTextBoxColumn()
  TextCol.MappingName = "custName"
  TextCol.HeaderText = "Customer Name"
  TextCol.Width = 250
  TextCol.TextBox.MaxLength = 8 'max 8 chars


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