DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Sets The Maximum Length Of A Text Column In Datatable.
Sets the maximum length of a text column in datatable.
DataColumn col= new DataColumn(); col.ColumnName = "StudentId"; col.MaxLength = 255; // Add the column to the datatable mydatatable.Columns.Add(col);





