asp.net - Bind null value to a dropdown list -
asp.net - Bind null value to a dropdown list -
i using items sharepoint list binded dropdown list. however, want first value in dropdown empty. cannot insert null value in sharepoint list item.
please allow me know how can programmatically. below code using bind list dropdownlist
if (fldname.contains("xxxxxx")) { ddllist.datasource = data.getcode(); ddllist.datatextfield = "title"; ddllist.datavaluefield = "alphabetic_x0020_code"; ddllist.databind(); ddllist.selectedvalue = string.empty; ddllist.width = 120; }
there has this. 0 position want new item - first in case. can after databinding.
ddllist.items.insert(0 , string.empty);
asp.net sharepoint
Comments
Post a Comment