Hi,
I am using RadComboBox in FormView and i am facing some issues. Well, its a simple data bind case involving Rad Combo Box; in which radcombobox is bound with values from a DataTable.
The code is as follows and is called from the PageLoad() event of the page
DataTable tb = FM.Get_tbl(); //Gets data from backend
//Forms View
FormsView1.DataSource = tb;
FormsView1.DataBind();
RadComboBox rad_No = (RadComboBox)FormsView1.FindControl("rad_No");
rad_No.DataSource = tb;
rad_No.DataTextField =
"Column_Name";
rad_No.DataValueField =
"Column_Name";
rad_No.DataBind();
On running this code it displays "Column_Name" as the values/Text in RadComboBox instead of the real data(Data from backend of the mentioned column).
I have used the same code mentioned below with success but with RadComboBox outside FormsView.
RadComboBox rad_No = (RadComboBox)FormsView1.FindControl("rad_No");
rad_No.DataSource = tb;
rad_No.DataTextField =
"Column_Name";
rad_No.DataValueField =
"Column_Name";
rad_No.DataBind();
Can anyone help me with this?
Regards,
Rahul Babbar