public void SaveGridState()
 {
     state.FromJSonString(context.GetSession().Get(gridName));
     varsToState();
     context.GetSession().Set(gridName, state.ToJSonString());
     dirty = true;
 }
 public void SetState(SdtGridState value)
 {
     state = value;
     context.GetSession().Set(gridName, state.ToJSonString());
 }