or
I've got a data set that needs to be displayed as a set of stacked columns.
So far so good, now the tricky part.
The values in a given stack may belong to a different data set:
e.g.
1st value belongs to set A,
2nd value belongs to set B,
3rd value belongs to set C
4th value belongs to set B
5th value belongs to set A
If we say A is Red, B is Green, and C is Blue the stacked bars need to be
Red
Green
Blue
Green
Red
Is there any way to accomplish this?
toolWindow.Size = new Size(400, 300);
toolWindow.Top = Location.Y;
toolWindow.Left = Location.X;
toolWindow.DockState = Telerik.WinControls.UI.Docking.DockState.Floating;
Also tried these...
//toolWindow.TabStrip.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute;
//toolWindow.TabStrip.SizeInfo.AbsoluteSize = new Size(150, 0);
and
//if (toolWindow.DockingSite.HostFrom != null)
//{
// toolWindow.DockingSite.HostForm.Size = new Size(300, 300);
//}
But none of these appeared to work...ideas? Thx...
When I’m entering into the cell, the first value in the datatable is appearing in the grid automatically and it is not updating that value.
Please check the cod below
public
Form1()
{
InitializeComponent();
this
.radGridView1.Rows.AddNew();
}
void
SetItems()
{
DataTable logicalOps =
new
DataTable();
logicalOps.Columns.Add(
"Col1"
);
logicalOps.Columns.Add(
"Col2"
);
logicalOps.Rows.Add(
"="
,
"Equal to"
);
logicalOps.Rows.Add(
"<>"
,
"Not equal to"
);
logicalOps.Rows.Add(
">"
,
"Greater than"
);
logicalOps.Rows.Add(
">="
,
"Greater than equal to"
);
logicalOps.Rows.Add(
"<"
,
"Less than"
);
logicalOps.Rows.Add(
"<="
,
"Less than equal to"
);
logicalOps.Rows.Add(
"START"
,
"Start With"
);
logicalOps.Rows.Add(
"END"
,
"End With"
);
logicalOps.Rows.Add(
"CONTAINS"
,
"Contains"
);
logicalOps.Rows.Add(
"IS NULL"
,
"IS NULL"
);
GridViewComboBoxColumn ctrl = (
this
.radGridView1.Columns[0]
as
GridViewComboBoxColumn);
ctrl.FieldName =
"Col2"
;
ctrl.DataSource = logicalOps;
ctrl.DisplayMember =
"Col2"
;
ctrl.ValueMember =
"Col1"
;
}