SIL.ObjectBrowser.InspectorWnd.gridInspector_CellMouseDown C# (CSharp) Method

gridInspector_CellMouseDown() private method

Handles the CellMouseDown event of the gridInspector control.
private gridInspector_CellMouseDown ( object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
sender object The source of the event.
e System.Windows.Forms.DataGridViewCellMouseEventArgs The instance containing the event data.
return void
		private void gridInspector_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
		{
			if (e.Button == MouseButtons.Right && e.RowIndex >= 0 && e.RowIndex < m_list.Count)
				gridInspector.CurrentCell = gridInspector[e.ColumnIndex, e.RowIndex];
		}