Herkunft

Kurzinformation

Creates a new System.Windows.Forms.DataGridView

Syntax

<# .Description Creates a new System.Windows.Forms.DataGridView .Synopsis Creates a new System.Windows.Forms.DataGridView .Example New-DataGridView .Example New-DataGridView -OutputXaml .Parameter OutputXaml If Set, will output the object as XAML instead of creating it #> param( [Switch] ${AllowUserToAddRows}, [Switch] ${AllowUserToDeleteRows}, [Switch] ${AllowUserToOrderColumns}, [Switch] ${AllowUserToResizeColumns}, [Switch] ${AllowUserToResizeRows}, ${AlternatingRowsDefaultCellStyle}, [Switch] ${AutoGenerateColumns}, [Switch] ${AutoSize}, [System.Windows.Forms.DataGridViewAutoSizeColumnsMode] ${AutoSizeColumnsMode}, [System.Windows.Forms.DataGridViewAutoSizeRowsMode] ${AutoSizeRowsMode}, ${BackColor}, ${BackgroundColor}, ${BackgroundImage}, [System.Windows.Forms.ImageLayout] ${BackgroundImageLayout}, [System.Windows.Forms.BorderStyle] ${BorderStyle}, [System.Windows.Forms.DataGridViewCellBorderStyle] ${CellBorderStyle}, [System.Windows.Forms.DataGridViewClipboardCopyMode] ${ClipboardCopyMode}, [System.Int32] ${ColumnCount}, [System.Windows.Forms.DataGridViewHeaderBorderStyle] ${ColumnHeadersBorderStyle}, ${ColumnHeadersDefaultCellStyle}, [System.Int32] ${ColumnHeadersHeight}, [System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode] ${ColumnHeadersHeightSizeMode}, [Switch] ${ColumnHeadersVisible}, ${Columns}, ${CurrentCell}, [System.String] ${DataMember}, ${DataSource}, ${DefaultCellStyle}, [System.Windows.Forms.DataGridViewEditMode] ${EditMode}, [Switch] ${EnableHeadersVisualStyles}, ${FirstDisplayedCell}, [System.Int32] ${FirstDisplayedScrollingColumnIndex}, [System.Int32] ${FirstDisplayedScrollingRowIndex}, ${ForeColor}, ${Font}, ${GridColor}, [System.Int32] ${HorizontalScrollingOffset}, [Switch] ${MultiSelect}, ${Padding}, [Switch] ${ReadOnly}, [System.Int32] ${RowCount}, [System.Windows.Forms.DataGridViewHeaderBorderStyle] ${RowHeadersBorderStyle}, ${RowHeadersDefaultCellStyle}, [Switch] ${RowHeadersVisible}, [System.Int32] ${RowHeadersWidth}, [System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode] ${RowHeadersWidthSizeMode}, ${Rows}, ${RowsDefaultCellStyle}, ${RowTemplate}, [System.Windows.Forms.ScrollBars] ${ScrollBars}, ${SelectedCells}, ${SelectedColumns}, ${SelectedRows}, [System.Windows.Forms.DataGridViewSelectionMode] ${SelectionMode}, [Switch] ${ShowCellErrors}, [Switch] ${ShowCellToolTips}, [Switch] ${ShowEditingIcon}, [Switch] ${ShowRowErrors}, [Switch] ${StandardTab}, [System.String] ${Text}, ${Item}, ${TopLeftHeaderCell}, [Switch] ${VirtualMode}, [System.String] ${AccessibleDefaultActionDescription}, [System.String] ${AccessibleDescription}, [System.String] ${AccessibleName}, [System.Windows.Forms.AccessibleRole] ${AccessibleRole}, [Switch] ${AllowDrop}, [System.Windows.Forms.AnchorStyles] ${Anchor}, ${AutoScrollOffset}, ${BindingContext}, ${Bounds}, [Switch] ${Capture}, [Switch] ${CausesValidation}, ${ClientSize}, ${ContextMenu}, ${ContextMenuStrip}, ${Controls}, ${Cursor}, [System.Windows.Forms.DockStyle] ${Dock}, [Switch] ${Enabled}, [System.Int32] ${Height}, [Switch] ${IsAccessible}, [System.Int32] ${Left}, ${Location}, ${Margin}, ${MaximumSize}, ${MinimumSize}, [System.String] ${Name}, ${Parent}, ${Region}, [System.Windows.Forms.RightToLeft] ${RightToLeft}, ${Site}, ${Size}, [System.Int32] ${TabIndex}, [Switch] ${TabStop}, ${Tag}, [System.Int32] ${Top}, [Switch] ${UseWaitCursor}, [Switch] ${Visible}, [System.Int32] ${Width}, ${WindowTarget}, [System.Windows.Forms.ImeMode] ${ImeMode}, [System.Management.Automation.ScriptBlock[]] ${On_AllowUserToAddRowsChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AllowUserToDeleteRowsChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AllowUserToOrderColumnsChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AllowUserToResizeColumnsChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AllowUserToResizeRowsChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AlternatingRowsDefaultCellStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AutoGenerateColumnsChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AutoSizeColumnsModeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AutoSizeRowsModeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_BackColorChanged}, [System.Management.Automation.ScriptBlock[]] ${On_BackgroundColorChanged}, [System.Management.Automation.ScriptBlock[]] ${On_BackgroundImageChanged}, [System.Management.Automation.ScriptBlock[]] ${On_BackgroundImageLayoutChanged}, [System.Management.Automation.ScriptBlock[]] ${On_BorderStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CellBorderStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnHeadersBorderStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnHeadersDefaultCellStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnHeadersHeightChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnHeadersHeightSizeModeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_DataMemberChanged}, [System.Management.Automation.ScriptBlock[]] ${On_DataSourceChanged}, [System.Management.Automation.ScriptBlock[]] ${On_DefaultCellStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_EditModeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ForeColorChanged}, [System.Management.Automation.ScriptBlock[]] ${On_FontChanged}, [System.Management.Automation.ScriptBlock[]] ${On_GridColorChanged}, [System.Management.Automation.ScriptBlock[]] ${On_MultiSelectChanged}, [System.Management.Automation.ScriptBlock[]] ${On_PaddingChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ReadOnlyChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeadersBorderStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeadersDefaultCellStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeadersWidthChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeadersWidthSizeModeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowsDefaultCellStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_TextChanged}, [System.Management.Automation.ScriptBlock[]] ${On_AutoSizeColumnModeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CancelRowEdit}, [System.Management.Automation.ScriptBlock[]] ${On_CellBeginEdit}, [System.Management.Automation.ScriptBlock[]] ${On_CellClick}, [System.Management.Automation.ScriptBlock[]] ${On_CellContentClick}, [System.Management.Automation.ScriptBlock[]] ${On_CellContentDoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_CellContextMenuStripChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CellContextMenuStripNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_CellDoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_CellEndEdit}, [System.Management.Automation.ScriptBlock[]] ${On_CellEnter}, [System.Management.Automation.ScriptBlock[]] ${On_CellErrorTextChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CellErrorTextNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_CellFormatting}, [System.Management.Automation.ScriptBlock[]] ${On_CellLeave}, [System.Management.Automation.ScriptBlock[]] ${On_CellMouseClick}, [System.Management.Automation.ScriptBlock[]] ${On_CellMouseDoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_CellMouseDown}, [System.Management.Automation.ScriptBlock[]] ${On_CellMouseEnter}, [System.Management.Automation.ScriptBlock[]] ${On_CellMouseLeave}, [System.Management.Automation.ScriptBlock[]] ${On_CellMouseMove}, [System.Management.Automation.ScriptBlock[]] ${On_CellMouseUp}, [System.Management.Automation.ScriptBlock[]] ${On_CellPainting}, [System.Management.Automation.ScriptBlock[]] ${On_CellParsing}, [System.Management.Automation.ScriptBlock[]] ${On_CellStateChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CellStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CellStyleContentChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CellToolTipTextChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CellToolTipTextNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_CellValidated}, [System.Management.Automation.ScriptBlock[]] ${On_CellValidating}, [System.Management.Automation.ScriptBlock[]] ${On_CellValueChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CellValueNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_CellValuePushed}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnAdded}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnContextMenuStripChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnDataPropertyNameChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnDefaultCellStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnDisplayIndexChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnDividerDoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnDividerWidthChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnHeaderMouseClick}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnHeaderMouseDoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnHeaderCellChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnMinimumWidthChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnNameChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnRemoved}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnSortModeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnStateChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnToolTipTextChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ColumnWidthChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CurrentCellChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CurrentCellDirtyStateChanged}, [System.Management.Automation.ScriptBlock[]] ${On_DataBindingComplete}, [System.Management.Automation.ScriptBlock[]] ${On_DataError}, [System.Management.Automation.ScriptBlock[]] ${On_DefaultValuesNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_EditingControlShowing}, [System.Management.Automation.ScriptBlock[]] ${On_NewRowNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_RowContextMenuStripChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowContextMenuStripNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_RowDefaultCellStyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowDirtyStateNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_RowDividerDoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_RowDividerHeightChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowEnter}, [System.Management.Automation.ScriptBlock[]] ${On_RowErrorTextChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowErrorTextNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeaderMouseClick}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeaderMouseDoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeaderCellChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeightChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeightInfoNeeded}, [System.Management.Automation.ScriptBlock[]] ${On_RowHeightInfoPushed}, [System.Management.Automation.ScriptBlock[]] ${On_RowLeave}, [System.Management.Automation.ScriptBlock[]] ${On_RowMinimumHeightChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowPostPaint}, [System.Management.Automation.ScriptBlock[]] ${On_RowPrePaint}, [System.Management.Automation.ScriptBlock[]] ${On_RowsAdded}, [System.Management.Automation.ScriptBlock[]] ${On_RowsRemoved}, [System.Management.Automation.ScriptBlock[]] ${On_RowStateChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RowUnshared}, [System.Management.Automation.ScriptBlock[]] ${On_RowValidated}, [System.Management.Automation.ScriptBlock[]] ${On_RowValidating}, [System.Management.Automation.ScriptBlock[]] ${On_Scroll}, [System.Management.Automation.ScriptBlock[]] ${On_SelectionChanged}, [System.Management.Automation.ScriptBlock[]] ${On_SortCompare}, [System.Management.Automation.ScriptBlock[]] ${On_Sorted}, [System.Management.Automation.ScriptBlock[]] ${On_StyleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_UserAddedRow}, [System.Management.Automation.ScriptBlock[]] ${On_UserDeletedRow}, [System.Management.Automation.ScriptBlock[]] ${On_UserDeletingRow}, [System.Management.Automation.ScriptBlock[]] ${On_AutoSizeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_BindingContextChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CausesValidationChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ClientSizeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ContextMenuChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ContextMenuStripChanged}, [System.Management.Automation.ScriptBlock[]] ${On_CursorChanged}, [System.Management.Automation.ScriptBlock[]] ${On_DockChanged}, [System.Management.Automation.ScriptBlock[]] ${On_EnabledChanged}, [System.Management.Automation.ScriptBlock[]] ${On_LocationChanged}, [System.Management.Automation.ScriptBlock[]] ${On_MarginChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RegionChanged}, [System.Management.Automation.ScriptBlock[]] ${On_RightToLeftChanged}, [System.Management.Automation.ScriptBlock[]] ${On_SizeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_TabIndexChanged}, [System.Management.Automation.ScriptBlock[]] ${On_TabStopChanged}, [System.Management.Automation.ScriptBlock[]] ${On_VisibleChanged}, [System.Management.Automation.ScriptBlock[]] ${On_Click}, [System.Management.Automation.ScriptBlock[]] ${On_ControlAdded}, [System.Management.Automation.ScriptBlock[]] ${On_ControlRemoved}, [System.Management.Automation.ScriptBlock[]] ${On_DragDrop}, [System.Management.Automation.ScriptBlock[]] ${On_DragEnter}, [System.Management.Automation.ScriptBlock[]] ${On_DragOver}, [System.Management.Automation.ScriptBlock[]] ${On_DragLeave}, [System.Management.Automation.ScriptBlock[]] ${On_GiveFeedback}, [System.Management.Automation.ScriptBlock[]] ${On_HandleCreated}, [System.Management.Automation.ScriptBlock[]] ${On_HandleDestroyed}, [System.Management.Automation.ScriptBlock[]] ${On_HelpRequested}, [System.Management.Automation.ScriptBlock[]] ${On_Invalidated}, [System.Management.Automation.ScriptBlock[]] ${On_Paint}, [System.Management.Automation.ScriptBlock[]] ${On_QueryContinueDrag}, [System.Management.Automation.ScriptBlock[]] ${On_QueryAccessibilityHelp}, [System.Management.Automation.ScriptBlock[]] ${On_DoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_Enter}, [System.Management.Automation.ScriptBlock[]] ${On_GotFocus}, [System.Management.Automation.ScriptBlock[]] ${On_KeyDown}, [System.Management.Automation.ScriptBlock[]] ${On_KeyPress}, [System.Management.Automation.ScriptBlock[]] ${On_KeyUp}, [System.Management.Automation.ScriptBlock[]] ${On_Layout}, [System.Management.Automation.ScriptBlock[]] ${On_Leave}, [System.Management.Automation.ScriptBlock[]] ${On_LostFocus}, [System.Management.Automation.ScriptBlock[]] ${On_MouseClick}, [System.Management.Automation.ScriptBlock[]] ${On_MouseDoubleClick}, [System.Management.Automation.ScriptBlock[]] ${On_MouseCaptureChanged}, [System.Management.Automation.ScriptBlock[]] ${On_MouseDown}, [System.Management.Automation.ScriptBlock[]] ${On_MouseEnter}, [System.Management.Automation.ScriptBlock[]] ${On_MouseLeave}, [System.Management.Automation.ScriptBlock[]] ${On_MouseHover}, [System.Management.Automation.ScriptBlock[]] ${On_MouseMove}, [System.Management.Automation.ScriptBlock[]] ${On_MouseUp}, [System.Management.Automation.ScriptBlock[]] ${On_MouseWheel}, [System.Management.Automation.ScriptBlock[]] ${On_Move}, [System.Management.Automation.ScriptBlock[]] ${On_PreviewKeyDown}, [System.Management.Automation.ScriptBlock[]] ${On_Resize}, [System.Management.Automation.ScriptBlock[]] ${On_ChangeUICues}, [System.Management.Automation.ScriptBlock[]] ${On_SystemColorsChanged}, [System.Management.Automation.ScriptBlock[]] ${On_Validating}, [System.Management.Automation.ScriptBlock[]] ${On_Validated}, [System.Management.Automation.ScriptBlock[]] ${On_ParentChanged}, [System.Management.Automation.ScriptBlock[]] ${On_ImeModeChanged}, [System.Management.Automation.ScriptBlock[]] ${On_Disposed}, [Switch] ${OutputXaml} ) begin { } process { try { $Object = New-Object System.Windows.Forms.DataGridView } catch { throw $_ return } Set-Property -property $psBoundParameters -inputObject $Object if ($outputXaml) { $strWrite = New-Object IO.StringWriter ([xml]([Windows.Markup.XamlWriter]::Save($Object))).Save($strWrite) return "$strWrite" } $Object } end { }

Beschreibung

Creates a new System.Windows.Forms.DataGridView

Links

Liste aller Commandlets Mehr über die Windows PowerShell

Bücher zur PowerShell

Buchcover Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe) Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe)
Autoren: Dr. Holger Schwichtenberg
erschienen 2016, 996 Seiten, 49,99 €
ISBN: 3446446435
Bestellung: Amazon.de oder im Buchhandel über ISBN 3446446435

Schulungen/Seminare

Offene Seminare zur PowerShell
In-House-Seminare zur PowerShell