Exemple #1
0
        protected void grvMyLightBox_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            string id = this.grvMyLightBox.DataKeys[e.RowIndex].Value.ToString();
            
            string str = ((TextBox)this.grvMyLightBox.Rows[e.RowIndex].Cells[0].Controls[0]).Text.Trim();
            Resource r = new Resource();
            r.EditLightBox(new Guid(id), str, "", DateTime.MaxValue);

            this.grvMyLightBox.EditIndex = -1;
            bindGrid();
        }