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.
Unfortunately, activation email could not send to your email. Please try again.

DataGridTextBoxColumn maxlength

Thread ID:





674 Jul 25,2002 01:52 AM Jul 27,2002 03:01 AM Windows Forms 1
Tags: FAQ
Vipul Bhatt
Asked On July 25, 2002 01:52 AM

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

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

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.

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.