|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
DataGridView (Clase)
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.DataGridView
Espacio de nombres: System.Windows.Forms
Ensamblado: System.Windows.Forms (en System.Windows.Forms.dll)
El tipo DataGridView expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() | AccessibilityObject | |
![]() | AccessibleDefaultActionDescription | |
![]() | AccessibleDescription | |
![]() | AccessibleName | |
![]() | AccessibleRole | |
![]() | AdjustedTopLeftHeaderBorderStyle | |
![]() | AdvancedCellBorderStyle | |
![]() | AdvancedColumnHeadersBorderStyle | |
![]() | AdvancedRowHeadersBorderStyle | |
![]() | AllowDrop | |
![]() | AllowUserToAddRows | |
![]() | AllowUserToDeleteRows | |
![]() | AllowUserToOrderColumns | |
![]() | AllowUserToResizeColumns | |
![]() | AllowUserToResizeRows | |
![]() | AlternatingRowsDefaultCellStyle | |
![]() | Anchor | |
![]() | AutoGenerateColumns | |
![]() | AutoScrollOffset | |
![]() | AutoSize | |
![]() | AutoSizeColumnsMode | |
![]() | AutoSizeRowsMode | |
![]() | BackColor | Infraestructura. |
![]() | BackgroundColor | |
![]() | BackgroundImage | Infraestructura. |
![]() | BackgroundImageLayout | Infraestructura. |
![]() | BindingContext | |
![]() | BorderStyle | |
![]() | Bottom | |
![]() | Bounds | |
![]() | CanEnableIme | |
![]() | CanFocus | |
![]() | CanRaiseEvents | |
![]() | CanSelect | |
![]() | Capture | |
![]() | CausesValidation | |
![]() | CellBorderStyle | |
![]() | ClientRectangle | |
![]() | ClientSize | |
![]() | ClipboardCopyMode | |
![]() | ColumnCount | |
![]() | ColumnHeadersBorderStyle | |
![]() | ColumnHeadersDefaultCellStyle | |
![]() | ColumnHeadersHeight | |
![]() | ColumnHeadersHeightSizeMode | |
![]() | ColumnHeadersVisible | |
![]() | Columns | |
![]() | CompanyName | |
![]() | Container | |
![]() | ContainsFocus | |
![]() | ContextMenu | |
![]() | ContextMenuStrip | |
![]() | Controls | |
![]() | Created | |
![]() | CreateParams | |
![]() | CurrentCell | |
![]() | CurrentCellAddress | |
![]() | CurrentRow | |
![]() | Cursor | |
![]() | DataBindings | |
![]() | DataMember | |
![]() | DataSource | |
![]() | DefaultCellStyle | |
![]() | DefaultCursor | |
![]() | DefaultImeMode | |
![]() | DefaultMargin | |
![]() | DefaultMaximumSize | |
![]() | DefaultMinimumSize | |
![]() | DefaultPadding | |
![]() | DefaultSize | |
![]() | DesignMode | |
![]() | DisplayRectangle | |
![]() | Disposing | |
![]() | Dock | |
![]() | DoubleBuffered | |
![]() | EditingControl | |
![]() | EditingPanel | |
![]() | EditMode | |
![]() | Enabled | |
![]() | EnableHeadersVisualStyles | |
![]() | Events | |
![]() | FirstDisplayedCell | |
![]() | FirstDisplayedScrollingColumnHiddenWidth | |
![]() | FirstDisplayedScrollingColumnIndex | |
![]() | FirstDisplayedScrollingRowIndex | |
![]() | Focused | |
![]() | Font | |
![]() | FontHeight | |
![]() | ForeColor | |
![]() | GridColor | |
![]() | Handle | |
![]() | HasChildren | |
![]() | Height | |
![]() | HorizontalScrollBar | |
![]() | HorizontalScrollingOffset | |
![]() | ImeMode | |
![]() | ImeModeBase | |
![]() | InvokeRequired | |
![]() | IsAccessible | |
![]() | IsCurrentCellDirty | |
![]() | IsCurrentCellInEditMode | |
![]() | IsCurrentRowDirty | |
![]() | IsDisposed | |
![]() | IsHandleCreated | |
![]() | IsMirrored | |
![]() | Item[Int32, Int32] | |
![]() | Item[String, Int32] | |
![]() | LayoutEngine | |
![]() | Left | |
![]() | Location | |
![]() | Margin | |
![]() | MaximumSize | |
![]() | MinimumSize | |
![]() | MultiSelect | |
![]() | Name | |
![]() | NewRowIndex | |
![]() | Padding | Infraestructura. |
![]() | Parent | |
![]() | PreferredSize | |
![]() | ProductName | |
![]() | ProductVersion | |
![]() | ReadOnly | |
![]() | RecreatingHandle | |
![]() | Region | |
![]() | RenderRightToLeft | Obsoleto. |
![]() | ResizeRedraw | |
![]() | Right | |
![]() | RightToLeft | |
![]() | RowCount | |
![]() | RowHeadersBorderStyle | |
![]() | RowHeadersDefaultCellStyle | |
![]() | RowHeadersVisible | |
![]() | RowHeadersWidth | |
![]() | RowHeadersWidthSizeMode | |
![]() | Rows | |
![]() | RowsDefaultCellStyle | |
![]() | RowTemplate | |
![]() | ScaleChildren | |
![]() | ScrollBars | |
![]() | SelectedCells | |
![]() | SelectedColumns | |
![]() | SelectedRows | |
![]() | SelectionMode | |
![]() | ShowCellErrors | |
![]() | ShowCellToolTips | |
![]() | ShowEditingIcon | |
![]() | ShowFocusCues | |
![]() | ShowKeyboardCues | |
![]() | ShowRowErrors | |
![]() | Site | |
![]() | Size | |
![]() | SortedColumn | |
![]() | SortOrder | |
![]() | StandardTab | |
![]() | TabIndex | |
![]() | TabStop | |
![]() | Tag | |
![]() | Text | Infraestructura. |
![]() | Top | |
![]() | TopLeftHeaderCell | |
![]() | TopLevelControl | |
![]() | UserSetCursor | |
![]() | UseWaitCursor | |
![]() | VerticalScrollBar | |
![]() | VerticalScrollingOffset | |
![]() | VirtualMode | |
![]() | Visible | |
![]() | Width | |
![]() | WindowTarget | Infraestructura. |
| Nombre | Descripción | |
|---|---|---|
![]() | AccessibilityNotifyClients(AccessibleEvents, Int32) | |
![]() | AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) | |
![]() | AccessibilityNotifyCurrentCellChanged | |
![]() | AdjustColumnHeaderBorderStyle | |
![]() | AreAllCellsSelected | |
![]() | AutoResizeColumn(Int32) | |
![]() | AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode) | |
![]() | AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode, Boolean) | |
![]() | AutoResizeColumnHeadersHeight() | |
![]() | AutoResizeColumnHeadersHeight(Int32) | |
![]() | AutoResizeColumnHeadersHeight(Boolean, Boolean) | |
![]() | AutoResizeColumnHeadersHeight(Int32, Boolean, Boolean) | |
![]() | AutoResizeColumns() | |
![]() | AutoResizeColumns(DataGridViewAutoSizeColumnsMode) | |
![]() | AutoResizeColumns(DataGridViewAutoSizeColumnsMode, Boolean) | |
![]() | AutoResizeRow(Int32) | |
![]() | AutoResizeRow(Int32, DataGridViewAutoSizeRowMode) | |
![]() | AutoResizeRow(Int32, DataGridViewAutoSizeRowMode, Boolean) | |
![]() | AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode) | |
![]() | AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode) | |
![]() | AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) | |
![]() | AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) | |
![]() | AutoResizeRows() | |
![]() | AutoResizeRows(DataGridViewAutoSizeRowsMode) | |
![]() | AutoResizeRows(DataGridViewAutoSizeRowsMode, Boolean) | |
![]() | AutoResizeRows(Int32, Int32, DataGridViewAutoSizeRowMode, Boolean) | |
![]() | BeginEdit | |
![]() | BeginInvoke(Delegate) | |
![]() | BeginInvoke(Delegate, Object[]) | |
![]() | BringToFront | |
![]() | CancelEdit | |
![]() | ClearSelection() | |
![]() | ClearSelection(Int32, Int32, Boolean) | |
![]() | CommitEdit | |
![]() | Contains | |
![]() | CreateAccessibilityInstance | |
![]() | CreateColumnsInstance | |
![]() | CreateControl | |
![]() | CreateControlsInstance | |
![]() | CreateGraphics | |
![]() | CreateHandle | |
![]() | CreateObjRef | |
![]() | CreateRowsInstance | |
![]() | DefWndProc | |
![]() | DestroyHandle | |
![]() | DisplayedColumnCount | |
![]() | DisplayedRowCount | |
![]() | Dispose() | |
![]() | Dispose(Boolean) | |
![]() | DoDragDrop | |
![]() | DrawToBitmap | |
![]() | EndEdit() | |
![]() | EndEdit(DataGridViewDataErrorContexts) | |
![]() | EndInvoke | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | FindForm | |
![]() | Focus | |
![]() | GetAccessibilityObjectById | |
![]() | GetAutoSizeMode | |
![]() | GetCellCount | |
![]() | GetCellDisplayRectangle | |
![]() | GetChildAtPoint(Point) | |
![]() | GetChildAtPoint(Point, GetChildAtPointSkip) | |
![]() | GetClipboardContent | |
![]() | GetColumnDisplayRectangle | |
![]() | GetContainerControl | |
![]() | GetHashCode | |
![]() | GetLifetimeService | |
![]() | GetNextControl | |
![]() | GetPreferredSize | |
![]() | GetRowDisplayRectangle | |
![]() | GetScaledBounds | |
![]() | GetService | |
![]() | GetStyle | |
![]() | GetTopLevel | |
![]() | GetType | |
![]() | Hide | |
![]() | HitTest | |
![]() | InitializeLifetimeService | |
![]() | InitLayout | |
![]() | Invalidate() | |
![]() | Invalidate(Boolean) | |
![]() | Invalidate(Rectangle) | |
![]() | Invalidate(Region) | |
![]() | Invalidate(Rectangle, Boolean) | |
![]() | Invalidate(Region, Boolean) | |
![]() | InvalidateCell(DataGridViewCell) | |
![]() | InvalidateCell(Int32, Int32) | |
![]() | InvalidateColumn | |
![]() | InvalidateRow | |
![]() | Invoke(Delegate) | |
![]() | Invoke(Delegate, Object[]) | |
![]() | InvokeGotFocus | |
![]() | InvokeLostFocus | |
![]() | InvokeOnClick | |
![]() | InvokePaint | |
![]() | InvokePaintBackground | |
![]() | IsInputChar | |
![]() | IsInputKey | |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | |
![]() | NotifyCurrentCellDirty | |
![]() | NotifyInvalidate | Infraestructura. |
![]() | OnAllowUserToAddRowsChanged | |
![]() | OnAllowUserToDeleteRowsChanged | |
![]() | OnAllowUserToOrderColumnsChanged | |
![]() | OnAllowUserToResizeColumnsChanged | |
![]() | OnAllowUserToResizeRowsChanged | |
![]() | OnAlternatingRowsDefaultCellStyleChanged | |
![]() | OnAutoGenerateColumnsChanged | |
![]() | OnAutoSizeChanged | |
![]() | OnAutoSizeColumnModeChanged | |
![]() | OnAutoSizeColumnsModeChanged | |
![]() | OnAutoSizeRowsModeChanged | |
![]() | OnBackColorChanged | |
![]() | OnBackgroundColorChanged | |
![]() | OnBackgroundImageChanged | |
![]() | OnBackgroundImageLayoutChanged | |
![]() | OnBindingContextChanged | |
![]() | OnBorderStyleChanged | |
![]() | OnCancelRowEdit | |
![]() | OnCausesValidationChanged | |
![]() | OnCellBeginEdit | |
![]() | OnCellBorderStyleChanged | |
![]() | OnCellClick | |
![]() | OnCellContentClick | |
![]() | OnCellContentDoubleClick | |
![]() | OnCellContextMenuStripChanged | |
![]() | OnCellContextMenuStripNeeded | |
![]() | OnCellDoubleClick | |
![]() | OnCellEndEdit | |
![]() | OnCellEnter | |
![]() | OnCellErrorTextChanged | |
![]() | OnCellErrorTextNeeded | |
![]() | OnCellFormatting | |
![]() | OnCellLeave | |
![]() | OnCellMouseClick | |
![]() | OnCellMouseDoubleClick | |
![]() | OnCellMouseDown | |
![]() | OnCellMouseEnter | |
![]() | OnCellMouseLeave | |
![]() | OnCellMouseMove | |
![]() | OnCellMouseUp | |
![]() | OnCellPainting | |
![]() | OnCellParsing | |
![]() | OnCellStateChanged | |
![]() | OnCellStyleChanged | |
![]() | OnCellStyleContentChanged | |
![]() | OnCellToolTipTextChanged | |
![]() | OnCellToolTipTextNeeded | |
![]() | OnCellValidated | |
![]() | OnCellValidating | |
![]() | OnCellValueChanged | |
![]() | OnCellValueNeeded | |
![]() | OnCellValuePushed | |
![]() | OnChangeUICues | |
![]() | OnClick | |
![]() | OnClientSizeChanged | |
![]() | OnColumnAdded | |
![]() | OnColumnContextMenuStripChanged | |
![]() | OnColumnDataPropertyNameChanged | |
![]() | OnColumnDefaultCellStyleChanged | |
![]() | OnColumnDisplayIndexChanged | |
![]() | OnColumnDividerDoubleClick | |
![]() | OnColumnDividerWidthChanged | |
![]() | OnColumnHeaderCellChanged | |
![]() | OnColumnHeaderMouseClick | |
![]() | OnColumnHeaderMouseDoubleClick | |
![]() | OnColumnHeadersBorderStyleChanged | |
![]() | OnColumnHeadersDefaultCellStyleChanged | |
![]() | OnColumnHeadersHeightChanged | |
![]() | OnColumnHeadersHeightSizeModeChanged | |
![]() | OnColumnMinimumWidthChanged | |
![]() | OnColumnNameChanged | |
![]() | OnColumnRemoved | |
![]() | OnColumnSortModeChanged | |
![]() | OnColumnStateChanged | |
![]() | OnColumnToolTipTextChanged | |
![]() | OnColumnWidthChanged | |
![]() | OnContextMenuChanged | |
![]() | OnContextMenuStripChanged | |
![]() | OnControlAdded | |
![]() | OnControlRemoved | |
![]() | OnCreateControl | |
![]() | OnCurrentCellChanged | |
![]() | OnCurrentCellDirtyStateChanged | |
![]() | OnCursorChanged | |
![]() | OnDataBindingComplete | |
![]() | OnDataError | |
![]() | OnDataMemberChanged | |
![]() | OnDataSourceChanged | |
![]() | OnDefaultCellStyleChanged | |
![]() | OnDefaultValuesNeeded | |
![]() | OnDockChanged | |
![]() | OnDoubleClick | |
![]() | OnDragDrop | |
![]() | OnDragEnter | |
![]() | OnDragLeave | |
![]() | OnDragOver | |
![]() | OnEditingControlShowing | |
![]() | OnEditModeChanged | |
![]() | OnEnabledChanged | |
![]() | OnEnter | |
![]() | OnFontChanged | |
![]() | OnForeColorChanged | |
![]() | OnGiveFeedback | |
![]() | OnGotFocus | |
![]() | OnGridColorChanged | |
![]() | OnHandleCreated | |
![]() | OnHandleDestroyed | |
![]() | OnHelpRequested | |
![]() | OnImeModeChanged | |
![]() | OnInvalidated | |
![]() | OnKeyDown | |
![]() | OnKeyPress | |
![]() | OnKeyUp | |
![]() | OnLayout | |
![]() | OnLeave | |
![]() | OnLocationChanged | |
![]() | OnLostFocus | |
![]() | OnMarginChanged | |
![]() | OnMouseCaptureChanged | |
![]() | OnMouseClick | |
![]() | OnMouseDoubleClick | |
![]() | OnMouseDown | |
![]() | OnMouseEnter | |
![]() | OnMouseHover | |
![]() | OnMouseLeave | |
![]() | OnMouseMove | |
![]() | OnMouseUp | |
![]() | OnMouseWheel | |
![]() | OnMove | |
![]() | OnMultiSelectChanged | |
![]() | OnNewRowNeeded | |
![]() | OnNotifyMessage | |
![]() | OnPaddingChanged | |
![]() | OnPaint | |
![]() | OnPaintBackground | |
![]() | OnParentBackColorChanged | |
![]() | OnParentBackgroundImageChanged | |
![]() | OnParentBindingContextChanged | |
![]() | OnParentChanged | |
![]() | OnParentCursorChanged | |
![]() | OnParentEnabledChanged | |
![]() | OnParentFontChanged | |
![]() | OnParentForeColorChanged | |
![]() | OnParentRightToLeftChanged | |
![]() | OnParentVisibleChanged | |
![]() | OnPreviewKeyDown | |
![]() | OnPrint | |
![]() | OnQueryContinueDrag | |
![]() | OnReadOnlyChanged | |
![]() | OnRegionChanged | |
![]() | OnResize | |
![]() | OnRightToLeftChanged | |
![]() | OnRowContextMenuStripChanged | |
![]() | OnRowContextMenuStripNeeded | |
![]() | OnRowDefaultCellStyleChanged | |
![]() | OnRowDirtyStateNeeded | |
![]() | OnRowDividerDoubleClick | |
![]() | OnRowDividerHeightChanged | |
![]() | OnRowEnter | |
![]() | OnRowErrorTextChanged | |
![]() | OnRowErrorTextNeeded | |
![]() | OnRowHeaderCellChanged | |
![]() | OnRowHeaderMouseClick | |
![]() | OnRowHeaderMouseDoubleClick | |
![]() | OnRowHeadersBorderStyleChanged | |
![]() | OnRowHeadersDefaultCellStyleChanged | |
![]() | OnRowHeadersWidthChanged | |
![]() | OnRowHeadersWidthSizeModeChanged | |
![]() | OnRowHeightChanged | |
![]() | OnRowHeightInfoNeeded | |
![]() | OnRowHeightInfoPushed | |
![]() | OnRowLeave | |
![]() | OnRowMinimumHeightChanged | |
![]() | OnRowPostPaint | |
![]() | OnRowPrePaint | |
![]() | OnRowsAdded | |
![]() | OnRowsDefaultCellStyleChanged | |
![]() | OnRowsRemoved | |
![]() | OnRowStateChanged | |
![]() | OnRowUnshared | |
![]() | OnRowValidated | |
![]() | OnRowValidating | |
![]() | OnScroll | |
![]() | OnSelectionChanged | |
![]() | OnSizeChanged | |
![]() | OnSortCompare | |
![]() | OnSorted | |
![]() | OnStyleChanged | |
![]() | OnSystemColorsChanged | |
![]() | OnTabIndexChanged | |
![]() | OnTabStopChanged | |
![]() | OnTextChanged | |
![]() | OnUserAddedRow | |
![]() | OnUserDeletedRow | |
![]() | OnUserDeletingRow | |
![]() | OnValidated | |
![]() | OnValidating | |
![]() | OnVisibleChanged | |
![]() | PaintBackground | |
![]() | PerformLayout() | |
![]() | PerformLayout(Control, String) | |
![]() | PointToClient | |
![]() | PointToScreen | |
![]() | PreProcessControlMessage | |
![]() | PreProcessMessage | |
![]() | ProcessAKey | |
![]() | ProcessCmdKey | |
![]() | ProcessDataGridViewKey | |
![]() | ProcessDeleteKey | |
![]() | ProcessDialogChar | |
![]() | ProcessDialogKey | |
![]() | ProcessDownKey | |
![]() | ProcessEndKey | |
![]() | ProcessEnterKey | |
![]() | ProcessEscapeKey | |
![]() | ProcessF2Key | |
![]() | ProcessHomeKey | |
![]() | ProcessInsertKey | |
![]() | ProcessKeyEventArgs | |
![]() | ProcessKeyMessage | |
![]() | ProcessKeyPreview | |
![]() | ProcessLeftKey | |
![]() | ProcessMnemonic | |
![]() | ProcessNextKey | |
![]() | ProcessPriorKey | |
![]() | ProcessRightKey | |
![]() | ProcessSpaceKey | |
![]() | ProcessTabKey | |
![]() | ProcessUpKey | |
![]() | ProcessZeroKey | |
![]() | RaiseDragEvent | Infraestructura. |
![]() | RaiseKeyEvent | Infraestructura. |
![]() | RaiseMouseEvent | Infraestructura. |
![]() | RaisePaintEvent | Infraestructura. |
![]() | RecreateHandle | |
![]() | RectangleToClient | |
![]() | RectangleToScreen | |
![]() | Refresh | |
![]() | RefreshEdit | |
![]() | ResetBackColor | |
![]() | ResetBindings | |
![]() | ResetCursor | |
![]() | ResetFont | |
![]() | ResetForeColor | |
![]() | ResetImeMode | |
![]() | ResetMouseEventArgs | Infraestructura. |
![]() | ResetRightToLeft | |
![]() | ResetText | Infraestructura. |
![]() | ResumeLayout() | |
![]() | ResumeLayout(Boolean) | |
![]() | RtlTranslateAlignment(ContentAlignment) | |
![]() | RtlTranslateAlignment(HorizontalAlignment) | |
![]() | RtlTranslateAlignment(LeftRightAlignment) | |
![]() | RtlTranslateContent | |
![]() | RtlTranslateHorizontal | |
![]() | RtlTranslateLeftRight | |
![]() | Scale(Single) | Obsoleto. |
![]() | Scale(SizeF) | |
![]() | Scale(Single, Single) | Obsoleto. |
![]() | ScaleControl | |
![]() | ScaleCore | Infraestructura. |
![]() | Select() | |
![]() | Select(Boolean, Boolean) | |
![]() | SelectAll | |
![]() | SelectNextControl | |
![]() | SendToBack | |
![]() | SetAutoSizeMode | |
![]() | SetBounds(Int32, Int32, Int32, Int32) | |
![]() | SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) | |
![]() | SetBoundsCore | |
![]() | SetClientSizeCore | |
![]() | SetCurrentCellAddressCore | |
![]() | SetSelectedCellCore | |
![]() | SetSelectedColumnCore | |
![]() | SetSelectedRowCore | |
![]() | SetStyle | |
![]() | SetTopLevel | |
![]() | SetVisibleCore | |
![]() | Show | |
![]() | SizeFromClientSize | |
![]() | Sort(IComparer) | |
![]() | Sort(DataGridViewColumn, ListSortDirection) | |
![]() | SuspendLayout | |
![]() | ToString | |
![]() | Update | |
![]() | UpdateBounds() | |
![]() | UpdateBounds(Int32, Int32, Int32, Int32) | |
![]() | UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) | |
![]() | UpdateCellErrorText | |
![]() | UpdateCellValue | |
![]() | UpdateRowErrorText(Int32) | |
![]() | UpdateRowErrorText(Int32, Int32) | |
![]() | UpdateRowHeightInfo | |
![]() | UpdateStyles | |
![]() | UpdateZOrder | |
![]() | WndProc |
| Nombre | Descripción | |
|---|---|---|
![]() | AllowUserToAddRowsChanged | |
![]() | AllowUserToDeleteRowsChanged | |
![]() | AllowUserToOrderColumnsChanged | |
![]() | AllowUserToResizeColumnsChanged | |
![]() | AllowUserToResizeRowsChanged | |
![]() | AlternatingRowsDefaultCellStyleChanged | |
![]() | AutoGenerateColumnsChanged | |
![]() | AutoSizeChanged | Infraestructura. |
![]() | AutoSizeColumnModeChanged | |
![]() | AutoSizeColumnsModeChanged | |
![]() | AutoSizeRowsModeChanged | |
![]() | BackColorChanged | Infraestructura. |
![]() | BackgroundColorChanged | |
![]() | BackgroundImageChanged | Infraestructura. |
![]() | BackgroundImageLayoutChanged | Infraestructura. |
![]() | BindingContextChanged | |
![]() | BorderStyleChanged | |
![]() | CancelRowEdit | |
![]() | CausesValidationChanged | |
![]() | CellBeginEdit | |
![]() | CellBorderStyleChanged | |
![]() | CellClick | |
![]() | CellContentClick | |
![]() | CellContentDoubleClick | |
![]() | CellContextMenuStripChanged | |
![]() | CellContextMenuStripNeeded | |
![]() | CellDoubleClick | |
![]() | CellEndEdit | |
![]() | CellEnter | |
![]() | CellErrorTextChanged | |
![]() | CellErrorTextNeeded | |
![]() | CellFormatting | |
![]() | CellLeave | |
![]() | CellMouseClick | |
![]() | CellMouseDoubleClick | |
![]() | CellMouseDown | |
![]() | CellMouseEnter | |
![]() | CellMouseLeave | |
![]() | CellMouseMove | |
![]() | CellMouseUp | |
![]() | CellPainting | |
![]() | CellParsing | |
![]() | CellStateChanged | |
![]() | CellStyleChanged | |
![]() | CellStyleContentChanged | |
![]() | CellToolTipTextChanged | |
![]() | CellToolTipTextNeeded | |
![]() | CellValidated | |
![]() | CellValidating | |
![]() | CellValueChanged | |
![]() | CellValueNeeded | |
![]() | CellValuePushed | |
![]() | ChangeUICues | |
![]() | Click | |
![]() | ClientSizeChanged | |
![]() | ColumnAdded | |
![]() | ColumnContextMenuStripChanged | |
![]() | ColumnDataPropertyNameChanged | |
![]() | ColumnDefaultCellStyleChanged | |
![]() | ColumnDisplayIndexChanged | |
![]() | ColumnDividerDoubleClick | |
![]() | ColumnDividerWidthChanged | |
![]() | ColumnHeaderCellChanged | |
![]() | ColumnHeaderMouseClick | |
![]() | ColumnHeaderMouseDoubleClick | |
![]() | ColumnHeadersBorderStyleChanged | |
![]() | ColumnHeadersDefaultCellStyleChanged | |
![]() | ColumnHeadersHeightChanged | |
![]() | ColumnHeadersHeightSizeModeChanged | |
![]() | ColumnMinimumWidthChanged | |
![]() | ColumnNameChanged | |
![]() | ColumnRemoved | |
![]() | ColumnSortModeChanged | |
![]() | ColumnStateChanged | |
![]() | ColumnToolTipTextChanged | |
![]() | ColumnWidthChanged | |
![]() | ContextMenuChanged | |
![]() | ContextMenuStripChanged | |
![]() | ControlAdded | |
![]() | ControlRemoved | |
![]() | CurrentCellChanged | |
![]() | CurrentCellDirtyStateChanged | |
![]() | CursorChanged | |
![]() | DataBindingComplete | |
![]() | DataError | |
![]() | DataMemberChanged | |
![]() | DataSourceChanged | |
![]() | DefaultCellStyleChanged | |
![]() | DefaultValuesNeeded | |
![]() | Disposed | |
![]() | DockChanged | |
![]() | DoubleClick | |
![]() | DragDrop | |
![]() | DragEnter | |
![]() | DragLeave | |
![]() | DragOver | |
![]() | EditingControlShowing | |
![]() | EditModeChanged | |
![]() | EnabledChanged | |
![]() | Enter | |
![]() | FontChanged | |
![]() | ForeColorChanged | |
![]() | GiveFeedback | |
![]() | GotFocus | |
![]() | GridColorChanged | |
![]() | HandleCreated | |
![]() | HandleDestroyed | |
![]() | HelpRequested | |
![]() | ImeModeChanged | |
![]() | Invalidated | |
![]() | KeyDown | |
![]() | KeyPress | |
![]() | KeyUp | |
![]() | Layout | |
![]() | Leave | |
![]() | LocationChanged | |
![]() | LostFocus | |
![]() | MarginChanged | |
![]() | MouseCaptureChanged | |
![]() | MouseClick | |
![]() | MouseDoubleClick | |
![]() | MouseDown | |
![]() | MouseEnter | |
![]() | MouseHover | |
![]() | MouseLeave | |
![]() | MouseMove | |
![]() | MouseUp | |
![]() | MouseWheel | |
![]() | Move | |
![]() | MultiSelectChanged | |
![]() | NewRowNeeded | |
![]() | PaddingChanged | Infraestructura. |
![]() | Paint | |
![]() | ParentChanged | |
![]() | PreviewKeyDown | |
![]() | QueryAccessibilityHelp | |
![]() | QueryContinueDrag | |
![]() | ReadOnlyChanged | |
![]() | RegionChanged | |
![]() | Resize | |
![]() | RightToLeftChanged | |
![]() | RowContextMenuStripChanged | |
![]() | RowContextMenuStripNeeded | |
![]() | RowDefaultCellStyleChanged | |
![]() | RowDirtyStateNeeded | |
![]() | RowDividerDoubleClick | |
![]() | RowDividerHeightChanged | |
![]() | RowEnter | |
![]() | RowErrorTextChanged | |
![]() | RowErrorTextNeeded | |
![]() | RowHeaderCellChanged | |
![]() | RowHeaderMouseClick | |
![]() | RowHeaderMouseDoubleClick | |
![]() | RowHeadersBorderStyleChanged | |
![]() | RowHeadersDefaultCellStyleChanged | |
![]() | RowHeadersWidthChanged | |
![]() | RowHeadersWidthSizeModeChanged | |
![]() | RowHeightChanged | |
![]() | RowHeightInfoNeeded | |
![]() | RowHeightInfoPushed | |
![]() | RowLeave | |
![]() | RowMinimumHeightChanged | |
![]() | RowPostPaint | |
![]() | RowPrePaint | |
![]() | RowsAdded | |
![]() | RowsDefaultCellStyleChanged | |
![]() | RowsRemoved | |
![]() | RowStateChanged | |
![]() | RowUnshared | |
![]() | RowValidated | |
![]() | RowValidating | |
![]() | Scroll | |
![]() | SelectionChanged | |
![]() | SizeChanged | |
![]() | SortCompare | |
![]() | Sorted | |
![]() | StyleChanged | Infraestructura. |
![]() | SystemColorsChanged | |
![]() | TabIndexChanged | |
![]() | TabStopChanged | |
![]() | TextChanged | Infraestructura. |
![]() | UserAddedRow | |
![]() | UserDeletedRow | |
![]() | UserDeletingRow | |
![]() | Validated | |
![]() | Validating | |
![]() | VisibleChanged |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() | IDropTarget.OnDragDrop | Infraestructura. |
![]() ![]() | IDropTarget.OnDragEnter | Infraestructura. |
![]() ![]() | IDropTarget.OnDragLeave | Infraestructura. |
![]() ![]() | IDropTarget.OnDragOver | Infraestructura. |
![]() ![]() | ISupportInitialize.BeginInit | |
![]() ![]() | ISupportInitialize.EndInit |
Nota |
|---|
using System; using System.Drawing; using System.Windows.Forms; public class Form1 : System.Windows.Forms.Form { private Panel buttonPanel = new Panel(); private DataGridView songsDataGridView = new DataGridView(); private Button addNewRowButton = new Button(); private Button deleteRowButton = new Button(); public Form1() { this.Load += new EventHandler(Form1_Load); } private void Form1_Load(System.Object sender, System.EventArgs e) { SetupLayout(); SetupDataGridView(); PopulateDataGridView(); } private void songsDataGridView_CellFormatting(object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e) { if (e != null) { if (this.songsDataGridView.Columns[e.ColumnIndex].Name == "Release Date") { if (e.Value != null) { try { e.Value = DateTime.Parse(e.Value.ToString()) .ToLongDateString(); e.FormattingApplied = true; } catch (FormatException) { Console.WriteLine("{0} is not a valid date.", e.Value.ToString()); } } } } } private void addNewRowButton_Click(object sender, EventArgs e) { this.songsDataGridView.Rows.Add(); } private void deleteRowButton_Click(object sender, EventArgs e) { if (this.songsDataGridView.SelectedRows.Count > 0 && this.songsDataGridView.SelectedRows[0].Index != this.songsDataGridView.Rows.Count - 1) { this.songsDataGridView.Rows.RemoveAt( this.songsDataGridView.SelectedRows[0].Index); } } private void SetupLayout() { this.Size = new Size(600, 500); addNewRowButton.Text = "Add Row"; addNewRowButton.Location = new Point(10, 10); addNewRowButton.Click += new EventHandler(addNewRowButton_Click); deleteRowButton.Text = "Delete Row"; deleteRowButton.Location = new Point(100, 10); deleteRowButton.Click += new EventHandler(deleteRowButton_Click); buttonPanel.Controls.Add(addNewRowButton); buttonPanel.Controls.Add(deleteRowButton); buttonPanel.Height = 50; buttonPanel.Dock = DockStyle.Bottom; this.Controls.Add(this.buttonPanel); } private void SetupDataGridView() { this.Controls.Add(songsDataGridView); songsDataGridView.ColumnCount = 5; songsDataGridView.ColumnHeadersDefaultCellStyle.BackColor = Color.Navy; songsDataGridView.ColumnHeadersDefaultCellStyle.ForeColor = Color.White; songsDataGridView.ColumnHeadersDefaultCellStyle.Font = new Font(songsDataGridView.Font, FontStyle.Bold); songsDataGridView.Name = "songsDataGridView"; songsDataGridView.Location = new Point(8, 8); songsDataGridView.Size = new Size(500, 250); songsDataGridView.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders; songsDataGridView.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single; songsDataGridView.CellBorderStyle = DataGridViewCellBorderStyle.Single; songsDataGridView.GridColor = Color.Black; songsDataGridView.RowHeadersVisible = false; songsDataGridView.Columns[0].Name = "Release Date"; songsDataGridView.Columns[1].Name = "Track"; songsDataGridView.Columns[2].Name = "Title"; songsDataGridView.Columns[3].Name = "Artist"; songsDataGridView.Columns[4].Name = "Album"; songsDataGridView.Columns[4].DefaultCellStyle.Font = new Font(songsDataGridView.DefaultCellStyle.Font, FontStyle.Italic); songsDataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; songsDataGridView.MultiSelect = false; songsDataGridView.Dock = DockStyle.Fill; songsDataGridView.CellFormatting += new DataGridViewCellFormattingEventHandler( songsDataGridView_CellFormatting); } private void PopulateDataGridView() { string[] row0 = { "11/22/1968", "29", "Revolution 9", "Beatles", "The Beatles [White Album]" }; string[] row1 = { "1960", "6", "Fools Rush In", "Frank Sinatra", "Nice 'N' Easy" }; string[] row2 = { "11/11/1971", "1", "One of These Days", "Pink Floyd", "Meddle" }; string[] row3 = { "1988", "7", "Where Is My Mind?", "Pixies", "Surfer Rosa" }; string[] row4 = { "5/1981", "9", "Can't Find My Mind", "Cramps", "Psychedelic Jungle" }; string[] row5 = { "6/10/2003", "13", "Scatterbrain. (As Dead As Leaves.)", "Radiohead", "Hail to the Thief" }; string[] row6 = { "6/30/1992", "3", "Dress", "P J Harvey", "Dry" }; songsDataGridView.Rows.Add(row0); songsDataGridView.Rows.Add(row1); songsDataGridView.Rows.Add(row2); songsDataGridView.Rows.Add(row3); songsDataGridView.Rows.Add(row4); songsDataGridView.Rows.Add(row5); songsDataGridView.Rows.Add(row6); songsDataGridView.Columns[0].DisplayIndex = 3; songsDataGridView.Columns[1].DisplayIndex = 4; songsDataGridView.Columns[2].DisplayIndex = 0; songsDataGridView.Columns[3].DisplayIndex = 1; songsDataGridView.Columns[4].DisplayIndex = 2; } [STAThreadAttribute()] static void Main() { Application.EnableVisualStyles(); Application.Run(new Form1()); } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
