protected void ListView3_ItemEditing(object sender, ListViewEditEventArgs e) { if (e.NewEditIndex >= 0 && ListView3.Items[e.NewEditIndex].ItemType == ListViewItemType.DataItem) { object _edSubPro = ListView3.EditItem.FindControl("edListSubProject"); if (_edSubPro != null && _edSubPro is DropDownList) { DropDownList _edSubProDP = (DropDownList)_edSubPro; BindDropDownList(_edSubProDP, "select SubProjectID, (LEFT(SubProjectCode + REPLICATE(' ' , 7), 7) + ' | ' + SubProjectName) AS SubProjectName from SubProject", "SubProject", "SubProjectName", "SubProjectID"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)