DataGridViewCellMouseEventArgs.RowIndex プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文行インデックスを指定する整数。
使用例' Override OnMouseClick in a class derived from DataGridViewCell to ' enter edit mode when the user clicks the cell. Protected Overrides Sub OnMouseClick( _ ByVal e As DataGridViewCellMouseEventArgs) If MyBase.DataGridView IsNot Nothing Then Dim point1 As Point = MyBase.DataGridView.CurrentCellAddress If point1.X = e.ColumnIndex And _ point1.Y = e.RowIndex And _ e.Button = MouseButtons.Left And _ Not MyBase.DataGridView.EditMode = _ DataGridViewEditMode.EditProgrammatically Then MyBase.DataGridView.BeginEdit(True) End If End If End Sub
// Override OnMouseClick in a class derived from DataGridViewCell to // enter edit mode when the user clicks the cell. protected override void OnMouseClick(DataGridViewCellMouseEventArgs e) { if (base.DataGridView != null) { Point point1 = base.DataGridView.CurrentCellAddress; if (point1.X == e.ColumnIndex && point1.Y == e.RowIndex && e.Button == MouseButtons.Left && base.DataGridView.EditMode != DataGridViewEditMode.EditProgrammatically) { base.DataGridView.BeginEdit(true); } } }
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からDataGridViewCellMouseEventArgs.RowIndex プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からDataGridViewCellMouseEventArgs.RowIndex プロパティ
を検索
- DataGridViewCellMouseEventArgs.RowIndex プロパティのページへのリンク