asp.net.ph

DataTable.MinimumCapacity Property

System.Data Namespace   DataTable Class


Sets or retrieves the initial starting size for this table.

Syntax


Script DataTable.MinimumCapacity [ = intSize ]

Property Value


intSize The initial starting size in rows of this table.

The property is read/write with a default value of 25.

Remarks

The MinimumCapacity allows the system to create an appropriate set of resources before fetching data. In a situation when performance is critical, setting this property can optimize performance.

Example

The following example sets the MinimumCapacity of a DataTable.

Private void MinimumCapacityDemo ( DataTable myTable ) {
   // change the MinimumCapacity.
   myTable.MinimumCapacity = 100;
}
  C# VB

See Also

DataTable Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph