S
Santosh
Hii I am binding data to dropdownlist but when i am binding data to it
i want to add one records programatically at the top the dropdownlist .
here i am writting code like
BindDropdownlist()
{
dataview dv = new Dataview();
dv = objSectionMAster.GetAllRecords();
Dropdownlist1.DatatTextField=dv[0]["SectionName"].Tostring();
Dropdownlist1.DatatValueField=dv[0]["SectionID"].ToString();
Dropdownlist1.DataSource = dv;
Dropdownlist1.DataBind();
}
i want to add one records programatically at the top the dropdownlist .
here i am writting code like
BindDropdownlist()
{
dataview dv = new Dataview();
dv = objSectionMAster.GetAllRecords();
Dropdownlist1.DatatTextField=dv[0]["SectionName"].Tostring();
Dropdownlist1.DatatValueField=dv[0]["SectionID"].ToString();
Dropdownlist1.DataSource = dv;
Dropdownlist1.DataBind();
}