Добавьте строку в существующий dataview в ASP.NET
Нажмите на ссылку для просмотра
I have a asp.net page with User picker control which can take more than one names and filter out on click of Filter button for those particular entered names in UserPicker but it is filtering out one by one using dataview in the below code , I have a written the code but while looping it is taking the last name and displaying the records. In this case how to Append a row for the given existing dataview.
Что я уже пробовал:
IEnumerator users = UserPicker.ResolvedEntities.GetEnumerator(); while (users.MoveNext()) { SPUser selectedUser = web.EnsureUser(((Microsoft.SharePoint.WebControls.PickerEntity)(users.Current)).Key); string strVendorUserName = selectedUser.LoginName.ToString(); if (strVendorUserName != null || ddlPermissionType.SelectedItem != null) { StringBuilder sb = new StringBuilder(string.Format("UserLoginName = '{0}'", strVendorUserName.Trim())); dv.RowFilter = sb.ToString(); return dv; }