Hello
I created a new form, added a RadGridView to it, and populated it using a query containing a UNION statement.
Even with the ReadOnly=false, when I changed a cell's value and clicked elsewhere, a "Data Exception" message saying "Column 'a' is read only." poped up. I put my UNION statement in a view, called the view, and everything worked as expected.
I created a new form, added a RadGridView to it, and populated it using a query containing a UNION statement.
pGrid.BeginUpdate();// QueryDB below returns a Datatable with the resultset or the SELECTDataTable rs = clsDBConn.QueryDB("SELECT a,b,c FROM T1 UNION SELECT a,b,c FROM T2"); pGrid.DataSource = null; pGrid.DataSource = rs;pGrid.MasterTemplate.AutoGenerateColumns = true;pGrid.MasterTemplate.AllowAutoSizeColumns = true;pGrid.MasterTemplate.AllowAddNewRow = false;pGrid.MasterTemplate.AllowDeleteRow = false;pGrid.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;pGrid.MasterTemplate.SelectionMode = GridViewSelectionMode.FullRowSelect;pGrid.TableElement.ShowTranslucentSelectionRectangle = true;pGrid.ShowRowHeaderColumn = false;pGrid.EndUpdate();foreach (GridViewDataColumn column in pGrid.Columns){ column.ReadOnly = false;}Even with the ReadOnly=false, when I changed a cell's value and clicked elsewhere, a "Data Exception" message saying "Column 'a' is read only." poped up. I put my UNION statement in a view, called the view, and everything worked as expected.