public DataRowEditForm(DataRow _dataRow, GridView _gridView, bool _liveData = true) : base() { prevData = new object[_dataRow.ParentTable.ColumnCount]; for (int i = 0; i < _dataRow.ParentTable.ColumnCount; i++) { prevData[i] = _dataRow[i]; } DataRow = _dataRow; GridView = _gridView; LiveData = _liveData; this.Text = "Row Edit Form"; this.Width = "400px"; // 25px - 25px 350px width; this.Height = "600px"; this.Body.style.overflowY = "auto"; Panel = Div(); Panel.style.overflowY = "auto"; Panel.SetBounds("0", "0", "100%", "(100% - 60px)"); Body.style.backgroundColor = "white"; _buttonCollection = new List <SimpleDialogButton>() { new SimpleDialogButton(this, DialogResultEnum.Cancel) { Text = "Cancel", Location = new Vector2("(100% - 85px)", "(100% - 35px)"), ItemClick = (ev) => { for (int i = 0; i < DataRow.ParentTable.ColumnCount; i++) { _dataRow[i] = prevData[i]; } GridView.RenderGrid(); } }, new SimpleDialogButton(this, DialogResultEnum.OK) { Text = "OK", Location = new Vector2("(100% - 170px)", "(100% - 35px)") } }; ButtonSection.AppendChildrenTabIndex(_buttonCollection.ToArray()); this.Body.AppendChild(Panel); this.AllowSizeChange = false; }