Dear All,
I'm strugling with one problem in GridViewComboBoxColumn
I have one Combo Box cell in my RadGridView and I created one Data Table object and set it as dataset for the Combo Box set .
Here, as I said when the first cell is in edit mode it will show "Equal to" automatically but it will never update the cell,
one more problem is when I select a value the the default value will be previously selected value and it will not allow to update
with the same value
Please Help .
Thanks in Advance,
Manu Krishna Here, as I said when the first cell is in edit mode it will show "" automatically but it will never update the cell,one more problem is when I select a value the the default value will be previously selected value and it will not allow to update with the same valuePlease Help .Thanks in Advance,Manu Krishna
I'm strugling with one problem in GridViewComboBoxColumn
I have one Combo Box cell in my RadGridView and I created one Data Table object and set it as dataset for the Combo Box set .
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"
;
}
one more problem is when I select a value the the default value will be previously selected value and it will not allow to update
with the same value
Please Help .
Thanks in Advance,
Manu Krishna Here, as I said when the first cell is in edit mode it will show "" automatically but it will never update the cell,one more problem is when I select a value the the default value will be previously selected value and it will not allow to update with the same valuePlease Help .Thanks in Advance,Manu Krishna