private void dgvRows_CellClick(object sender, DataGridViewCellEventArgs e) { ModuleProc PROC = new ModuleProc("", "dgvRows_CellClick"); try { DataGridViewRow row = dgvRows.Rows[e.RowIndex]; DataGridViewCell cell = row.Cells[e.ColumnIndex]; GridViewCellClickedEventArgs args = new GridViewCellClickedEventArgs() { Row = row, Cell = cell }; if (this.ManualDataBinding) { args.DataObject = row.Tag; } else { args.DataObject = row.DataBoundItem; } this.OnCellClicked(args); } catch (Exception ex) { Log.Exception(PROC, ex); } }
private void OnCellClicked(GridViewCellClickedEventArgs e) { ModuleProc PROC = new ModuleProc("", "OnManualRowBind"); try { if (this.CellClicked != null) { this.CellClicked(e); } } catch (Exception ex) { Log.Exception(PROC, ex); } }
private void OnCellClicked(GridViewCellClickedEventArgs e) { ModuleProc PROC = new ModuleProc("", "OnManualRowBind"); try { if (this.CellClicked != null) { this.CellClicked(e); } } catch (Exception ex) { Log.Exception(PROC, ex); } }
private void dgvRows_CellClick(object sender, DataGridViewCellEventArgs e) { ModuleProc PROC = new ModuleProc("", "dgvRows_CellClick"); try { DataGridViewRow row = dgvRows.Rows[e.RowIndex]; DataGridViewCell cell = row.Cells[e.ColumnIndex]; GridViewCellClickedEventArgs args = new GridViewCellClickedEventArgs() { Row = row, Cell = cell }; if (this.ManualDataBinding) { args.DataObject = row.Tag; } else { args.DataObject = row.DataBoundItem; } this.OnCellClicked(args); } catch (Exception ex) { Log.Exception(PROC, ex); } }