コード例 #1
0
 protected void btnNovo_Click(object sender, EventArgs e)
 {
     txtDesc.Text     = "";
     txtValor.Text    = "";
     lblMSG.Text      = "";
     GVLog.DataSource = null;
     GVLog.DataBind();
     txtDesc.Focus();
     txtValor.Focus();
 }
コード例 #2
0
ファイル: SqlSaveViewTab.cs プロジェクト: radtek/DBDevHelper
        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);
            }
        }
コード例 #3
0
 protected void btnLogss_Click(object sender, EventArgs e)
 {
     GVLog.DataSource = GetLogs();
     GVLog.DataBind();
     SaveLog("Consultou Logs");
 }