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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataGridTextBoxColumn maxlength

Thread ID:

Created:

Updated:

Platform:

Replies:

674 Jul 25,2002 05:52 AM UTC Jul 27,2002 07:01 AM UTC WinForms 1
loading
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
  ts1.GridColumnStyles.Add(TextCol)

CONFIRMATION

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.

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

;