Gets or sets the initial starting size for this table.
Assembly: System.Data (in System.Data.dll)
Syntax . . :: . Int32
The initial starting size in rows of this table. The default is 50.
Public Property MinimumCapacity As Integerpublic int MinimumCapacity { get; set; }public:
property int MinimumCapacity {
int get ();
void set (int value);
}member MinimumCapacity : int with get, set
Property Value
Type: SystemThe initial starting size in rows of this table. The default is 50.
Examples
The following example sets the MinimumCapacity of a DataTable.
Private Sub SetMinimumCapacity(ByVal table As DataTable)
' Change the MinimumCapacity.
table.MinimumCapacity = 100
End Sub
private void SetMinimumCapacity(DataTable table)
{
// Change the MinimumCapacity.
table.MinimumCapacity = 100;
}
Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.