dataGridView属性及方法

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Dat aGridView 类
请稍候
DataGridV iew成员
开启低带宽视图
全部折叠
此页面仅适用于
.NET Framework 3.0
同时提供下列产品的其他版本:
∙Microsoft Visual Studio 2005/.NET Framework 2.0∙Microsoft Visual Studio 2008/.NET Framework 3.5 DataGridView 成员
在可自定义的网格中显示数据。

下表列出了由DataGridView类型公开的成员。

公共构造函数
页首
公共属性
(请参见受保护的属性)
AccessibilityObject
AccessibleDefaultActionDescription
AccessibleDescription
AccessibleName
AccessibleRole
AdjustedTopLeftHeaderBorderStyle
AdvancedCellBorderStyle AdvancedColumnHeadersBorderStyle
AdvancedRowHeadersBorderStyle
AllowDrop
AllowUserToAddRows
AllowUserToDeleteRows
AllowUserToOrderColumns
AllowUserToResizeColumns
AllowUserToResizeRows
AlternatingRowsDefaultCellStyle
Anchor
AutoGenerateColumns AutoScrollOffset
AutoSize
AutoSizeColumnsMode AutoSizeRowsMode
BackColor
BackgroundColor BackgroundImage
BackgroundImageLayout
BindingContext
BorderStyle
Bottom
Bounds
CanFocus
CanSelect
Capture
CausesValidation
CellBorderStyle CheckForIllegalCrossThreadCalls
ClientRectangle
ClientSize ClipboardCopyMode ColumnCount
ColumnHeadersBorderStyle ColumnHeadersDefaultCellStyle ColumnHeadersHeight ColumnHeadersHeightSizeMode
ColumnHeadersVisible
Columns
CompanyName
Container
ContainsFocus
ContextMenu ContextMenuStrip
Controls
Created
Current
Current
CurrentRow
Cursor
DataBindings
DataMember
DataSource
DefaultBackColor
DefaultCellStyle
DefaultFont
DefaultForeColor
DisplayRectangle
Disposing
Dock
EditingControl
EditingPanel
EditMode
Enabled
EnableHeadersVisualStyles FirstDisplayedCell FirstDisplayedScrollingColumnHiddenWidth FirstDisplayedScrollingColumnIndex FirstDisplayedScrollingRowIndex
Focused
Font
ForeColor
GridColor
Handle
HasChildren
Height HorizontalScrollingOffset ImeMode
InvokeRequired
IsAccessible IsCurrentCellDirty IsCurrentCellInEditMode IsCurrentRowDirty IsDisposed IsHandleCreated IsMirrored
Item
LayoutEngine
Left
Location
Margin MaximumSize MinimumSize ModifierKeys MouseButtons MousePosition MultiSelect
Name NewRowIndex Padding Parent PreferredSize
ProductName ProductVersion
ReadOnly
RecreatingHandle
Region
Right
RightToLeft
RowCount RowHeadersBorderStyle RowHeadersDefaultCellStyle RowHeadersVisible
RowHeadersWidth
RowHeadersWidthSizeMode Rows RowsDefaultCellStyle RowTemplate
ScrollBars
SelectedCells SelectedColumns SelectedRows SelectionMode
ShowCellErrors
ShowCellToolTips ShowEditingIcon ShowRowErrors
Site
Size SortedColumn SortOrder StandardTab TabIndex TabStop
Tag
Text
Top TopLeftHeaderCell TopLevelControl
UserSetCursor
UseWaitCursor
VerticalScrollingOffset
VirtualMode
Visible
Width
WindowTarget
页首
受保护的属性
CanRaiseEvents
CreateParams
DefaultCursor
DefaultImeMode
DefaultMargin
DefaultMaximumSize
DefaultMinimumSize
DefaultPadding
DefaultSize
DesignMode
DoubleBuffered
Events
FontHeight
HorizontalScrollBar
RenderRightToLeft
ResizeRedraw
ScaleChildren
ShowFocusCues
ShowKeyboardCues
VerticalScrollBar
页首
公共方法
(请参见受保护的方法)
AdjustColumnHeaderBorderStyle
AreAllCellsSelected
AutoResizeColumn
AutoResizeColumnHeadersHeight
AutoResizeColumns
AutoResizeRow
AutoResizeRowHeadersWidth
AutoResizeRows
BeginEdit
BeginInvoke
BringToFront
C
ClearSelection
CommitEdit
Contains
CreateControl
CreateGraphics CreateObjRef
DisplayedColumnCount DisplayedRowCount Dispose
DoDragDrop DrawToBitmap
EndEdit
EndInvoke
Equals
FindForm
Focus
FromChildHandle FromHandle
GetCellCount GetCellDisplayRectangle GetChildAtPoint GetClipboardContent
GetColumnDisplayRectangle
GetContainerControl
GetHashCode GetLifetimeService
GetNextControl GetPreferredSize
GetRowDisplayRectangle GetType
Hide
HitTest InitializeLifetimeService Invalidate InvalidateCell InvalidateColumn InvalidateRow
Invoke
IsKeyLocked IsMnemonic
NotifyCurrentCellDirty PerformLayout
PointToClient
PointToScreen PreProcessControlMessage PreProcessMessage RectangleToClient RectangleToScreen ReferenceEquals
Refresh
RefreshEdit ResetBackColor ResetBindings
ResetCursor
ResetFont ResetForeColor
ResetImeMode ResetRightToLeft
ResetText ResumeLayout
Scale
Select
SelectAll
SelectNextControl
SendToBack
SetBounds
Show
Sort
SuspendLayout
ToString
Update
UpdateCellErrorText
UpdateCellValue
UpdateRowErrorText
UpdateRowHeightInfo
页首
受保护的方法
AccessibilityNotifyClients
AccessibilityNotifyCurrentCellChanged
AutoResizeColumn
AutoResizeColumnHeadersHeight
AutoResizeColumns
AutoResizeRow
AutoResizeRowHeadersWidth
AutoResizeRows ClearSelection CreateAccessibilityInstance
CreateColumnsInstance
CreateControlsInstance
CreateHandle CreateRowsInstance
DefWndProc
DestroyHandle
Dispose
Finalize
GetAccessibilityObjectById GetAutoSizeMode
GetScaledBounds GetService
GetStyle
GetTopLevel
InitLayout
InvokeGotFocus
InvokeLostFocus
InvokeOnClick
InvokePaint
InvokePaintBackground
IsInputChar
IsInputKey
MemberwiseClone
NotifyInvalidate OnAllowUserToAddRowsChanged OnAllowUserToDeleteRowsChanged OnAllowUserToOrderColumnsChanged OnAllowUserToResizeColumnsChanged OnAllowUserToResizeRowsChanged
OnAlternatingRowsDefaultCellStyleChange d
OnAutoGenerateColumnsChanged OnAutoSizeChanged
OnAutoSizeColumnModeChanged OnAutoSizeColumnsModeChanged
OnAutoSizeRowsModeChanged OnBackColorChanged
OnBackgroundColorChanged OnBackgroundImageChanged
OnBackgroundImageLayout
OnBindingContextChanged OnBorderStyleChanged OnCancelRowEdit OnCausesValidationChanged
OnCellBeginEdit OnCellBorderStyleChanged OnCellClick OnCellContentClick OnCellContentDoubleClick OnCellContextMenuStripChanged OnCellContextMenuStripNeeded OnCellDoubleClick OnCellEndEdit
OnCellEnter
OnCellErrorText OnCellErrorTextNeeded OnCellFormatting
OnCellLeave
OnC OnCellMouseDoubleClick OnCellMouseDown
OnCellMouseEnter
OnC
OnCellMouseMove
OnCellMouseUp
OnCellPainting
OnCellParsing OnCellStateChanged OnCellStyleChanged OnCellStyleContentChanged OnCellToolTipTextChanged OnCellToolTipTextNeeded OnCellValidated
OnCellValidating OnCellValueChanged OnCellValueNeeded OnCellValuePushed OnChangeUICues
OnClick
OnClientSizeChanged
OnColumnAdded OnColumnContextMenuStripChanged
OnColumnDataPropertyNameChanged
OnColumnDefault OnColumnDisplayIndexChanged OnColumnDividerDoubleClick OnColumnDividerWidthChanged
OnColumnHeaderCellChanged OnColumnHeaderMouseClick OnColumnHeaderMouseDoubleClick
OnColumnHeadersBorderStyleChanged
OnColumnHeadersDefaultCellStyleChange d
OnColumnHeadersHeightChanged
OnColumnHeadersHeightSizeModeChange d
OnColumnMinimumWidthChanged OnColumnNameChanged OnColumnRemoved OnColumnSortModeChanged OnColumnStateChanged OnColumnToolTipText OnColumnWidthChanged OnContextMenuChanged
OnContextMenuStripChanged
OnControlAdded
OnControlRemoved
OnCreateControl
OnCurrent
OnCurrent
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
OnMarginC
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 OnSizeC OnSortCompare OnSorted OnStyleChanged OnSystemColorsChanged
OnTabIndexChanged
OnTabStopChanged
OnTextChanged OnUserAddedRow OnUserDeletedRow OnUserDeletingRow OnValidated OnValidating OnVisibleChanged PaintBackground 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 RaiseKeyEvent RaiseMouseEvent RaisePaintEvent RecreateHandle ReflectMessage
ResetMouseEventArgs
RtlTranslateAlignment
RtlTranslateContent RtlTranslateHorizontal RtlTranslateLeftRight ScaleControl
ScaleCore
Select
SetAutoSizeMode
SetBoundsCore SetClientSizeCore SetCurrentCellAddressCore SetSelectedCellCore
SetSelectedColumnCore SetSelectedRowCore SetStyle
SetTopLevel SetVisibleCore
SizeFromClientSize UpdateBounds
UpdateStyles
UpdateZOrder
WndProc
页首
公共事件
AllowUserToAddRowsChanged
AllowUserToDeleteRowsChanged
AllowUserToOrderColumnsChanged
AllowUserToResizeColumnsChanged
AllowUserToResizeRowsChanged
AlternatingRowsDefaultCellStyleChanged
AutoGenerateColumnsChanged
AutoSizeChanged
AutoSizeColumnModeChanged
AutoSizeColumnsModeChanged
AutoSizeRowsModeChanged
BackColorChanged
BackgroundColorChanged
BackgroundImageChanged
BackgroundImageLayout
BindingContextChanged
BorderStyleChanged CancelRowEdit
CausesValidationChanged
C
CellBorderStyleChanged CellClick
CellContentClick CellContentDoubleClick CellContextMenuStripChanged CellContextMenuStripNeeded CellDoubleClick
CellEndEdit
CellEnter
CellErrorText 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
ColumnDefault ColumnDisplayIndexChanged ColumnDividerDoubleClick ColumnDividerWidthChanged
ColumnHeaderCellChanged ColumnHeaderMouseClick ColumnHeaderMouseDoubleClick ColumnHeadersBorderStyleChanged ColumnHeadersDefaultCellStyleChanged
ColumnHeadersHeightChanged ColumnHeadersHeightSizeModeChanged
ColumnMinimumWidthChanged ColumnNameChanged ColumnRemoved ColumnSortModeChanged ColumnStateChanged ColumnToolTipText
ColumnWidthChanged ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
Current
Current
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
MarginC MouseCaptureChanged
MouseClick MouseDoubleClick MouseDown
MouseEnter MouseHover MouseLeave MouseMove
MouseUp
MouseWheel
Move MultiSelectChanged NewRowNeeded
PaddingChanged
Paint ParentChanged
PreviewKeyDown QueryAccessibilityHelp
QueryContinueDrag
ReadOnlyChanged RegionChanged
Resize
RightToLeftChanged
RowContextMenuStripChanged RowContextMenuStripNeeded RowDefaultCellStyleChanged RowDirtyStateNeeded
RowDividerDoubleClick RowDividerHeightChanged RowEnter
RowErrorText 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 SystemColorsChanged TabIndexChanged
TabStopChanged
TextChanged
UserAddedRow
UserDeletedRow
UserDeletingRow
Validated
Validating
VisibleChanged
页首
显式接口实现
ponentModel.ISupportInitialize.BeginInit
ponentModel.ISupportInitialize.EndInit
页首
请参见
参考
Dat aGridView 类
System.Windows.F orms 命名空间
其他资源
Dat aGridView 控件(Windows 窗体)
Dat aGridView 控件概述(Windows 窗体)
Windows 窗体 DataGridView 控件中的基本格式设置和样式设置
在Windows 窗体 DataGridView 控件中显示数据
Windows 窗体 DataGridView 控件中的数据显示模式
Windows 窗体 DataGridView 控件和DataGrid 控件之间的区别
标记 : 添加标记
社区内容
添加新内容批注
|
个人信息中心 | 法律信息 | MSDN Flash 中心 | 联系我们
© 2009 Microsoft Corporation 版权所有。

保留所有权利 | 商标 | 隐私权声明。

相关文档
最新文档