protected void btnNovo_Click(object sender, EventArgs e) { txtDesc.Text = ""; txtValor.Text = ""; lblMSG.Text = ""; GVLog.DataSource = null; GVLog.DataBind(); txtDesc.Focus(); txtValor.Focus(); }
private void GVLog_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var cell = GVLog.Rows[e.RowIndex].Cells[e.ColumnIndex]; if (cell.Style.WrapMode == DataGridViewTriState.True) { cell.Style.WrapMode = DataGridViewTriState.False; GVLog.EndEdit(); } else { cell.Style.WrapMode = DataGridViewTriState.True; GVLog.ReadOnly = false; cell.ReadOnly = false; GVLog.BeginEdit(true); } }
protected void btnLogss_Click(object sender, EventArgs e) { GVLog.DataSource = GetLogs(); GVLog.DataBind(); SaveLog("Consultou Logs"); }