Beispiel #1
0
        // update event
        protected void gvImage_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            BusinessServices.Event objProfile = new BusinessServices.Event();
            TextBox EventTypeName             = (TextBox)gvImage.Rows[e.RowIndex].FindControl("txtImageName");

            string EventTypeId = gvImage.DataKeys[e.RowIndex].Value.ToString();



            objProfile.EventTypeId   = int.Parse(EventTypeId);
            objProfile.EventTypeName = EventTypeName.Text;
            objProfile.UpdateEventType(objProfile);

            gvImage.EditIndex = -1;
            EventType();
        }