or
pGrid.BeginUpdate();
// QueryDB below returns a Datatable with the resultset or the SELECT
DataTable 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
;
}
Is there any way to set in command bar any control acceptable by command bar, like drop down list, anchored to the right side of the bar?
The command bar in the picture attached is stretched on the whole width of its parent control and is resizing with its parent control together.
RadComboBoxItem item = radComboBox1.FindItem(strString);