Hi guys,
sorry if this has been asked before but so far i couldn't find such topic for C#. so again asking the experts to help me.
so i'm using VC# 2010 SP1, RAD Q2 2012.
so i have the following datatable and dataset. code below
and i add values to the datatable like this
so my datatable is something like below when values are added.
0 | IT01 | | name1 | Process0 | true | 5.55
1 | IT02 | IT01 | name2 | Process0 | True | 2.66
2 | IT03 | IT02 | name3 | Process0 | True | 6.46
so my question is now how can i use the datatable above to populate the radTreeview and then
when user edit the price value in radtreeview it should get updated in the datatable as well as
the checkbox state.
Could you please include an example.
thank you for your help.
suren.
sorry if this has been asked before but so far i couldn't find such topic for C#. so again asking the experts to help me.
so i'm using VC# 2010 SP1, RAD Q2 2012.
so i have the following datatable and dataset. code below
DataSet SelPreDS =
new
DataSet();
DataTable SelPreDT;
SelPreDT = SelPreDS.Tables.Add();
SelPreDT.Columns.Add(
"ID"
,
typeof
(Int32));
SelPreDT.Columns.Add(
"Code"
,
typeof
(
string
));
DataColumn dc =
new
DataColumn(
"ParentCode"
,
typeof
(
string
));
dc.AllowDBNull =
true
;
SelPreDT.Columns.Add(dc);
SelPreDT.Columns.Add(
"Name"
,
typeof
(
string
));
SelPreDT.Columns.Add(
"Type"
,
typeof
(
string
));
SelPreDT.Columns.Add("isCheck", typeof(Boolean));
SelPreDT.Columns.Add(
"Price"
,
typeof
(Int32));
and i add values to the datatable like this
DataRow dr = SelPreDT.NewRow();
dr[0] = id;
dr[1] = code;
dr[2] = ParentNoteID;
dr[3] = Name;
dr[4] =
"Process"
;
dr[5] = true;
dr[6] = 6.66;
dr[6] = 6.66;
SelPreDT.Rows.Add(dr);
so my datatable is something like below when values are added.
0 | IT01 | | name1 | Process0 | true | 5.55
1 | IT02 | IT01 | name2 | Process0 | True | 2.66
2 | IT03 | IT02 | name3 | Process0 | True | 6.46
so my question is now how can i use the datatable above to populate the radTreeview and then
when user edit the price value in radtreeview it should get updated in the datatable as well as
the checkbox state.
Could you please include an example.
thank you for your help.
suren.