ppsGrid Class Library
AddCols Method (count, startCol, visible)
NamespacesppsGridGridAddCols(Int32, Int32, Boolean)
ppsGrid (c] 2004-2007 by Torsten Oberprieler
Fügt der Cols-Auflistung eine oder mehrere GridCol-Objekte am angegebenen Index hinzu. Die Sichtbarkeit der hinzugefügten Spalte oder Spalten kann bestimmt werden.
Declaration Syntax
C#Visual BasicVisual C++
public void AddCols(
	int count,
	int startCol,
	bool visible
)
Public Sub AddCols ( _
	count As Integer, _
	startCol As Integer, _
	visible As Boolean _
)
public:
void AddCols (
	int count, 
	int startCol, 
	bool visible
)
Parameters
count (Int32)
Anzahl der Spaltenobjekte, die der Auflistung hinzugefügt werden sollen
startCol (Int32)
Die nullbasierte Indexposition, an der die Spaltenobjekte eingefügt werden sollen.
visible (Boolean)
Sichtbarkeit der eingefügten Spaltenobjekte.
Examples
CopyC#
grid.AddRows(10);                             // 10 Zeilen
grid.AddCols(10);                             // ..mit 10 Spalten
foreach(GridCol c in grid.Cols)               // alle Zeilen..
  c.BackColorCell = Color.Yellow;             // ..Hintergrund gelb

grid.AddCols(2,5,true);                       // Zeilen 5+6 einfügen
for(int c=5; c < 2; c++)                      // schleife für Zeile 5+6
  grid.Cols[c].BackColorCell = Color.Red;     // ..Hintergrund rot
See Also

Assembly: ppsGrid (Module: ppsGrid) Version: 1.3.4.0