New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

How can I limit the User Information in Gridview

Return to previous page

  • 8/18/2015
  • 2177 Views

Question:

viola martin 9 years ago

Hi everyone I have a problem in displaying the information of my portal user in my DNN. Because I'm getting all of the information of the users such as :

e-mail

affiliateID

portalId

username

displayname and etc....

Which I dont want to have. Because I only need particular information such as UserID, and Username that's all.

currently I'm using these line of codes to retrieve the portal user:

 publicArrayListbindingListHere(stringtxtSearchUser)
{

 stringgetUsers=txtSearchUser;
inttotalrecords=10;
Users=UserController.GetUsersByUserName(PortalId,getUsers+"%",0,10,reftotalrecords,true,IsSuperUser);

returnUsers;
}

And then bind it here :

 protectedvoidSearch(objectsender,EventArgse)
{
//callingthemethodfromthelibthatwillsearchuserofthe portal
DownloadCtrLibdctrl=newDownloadCtrLib();
dctrl.bindingListHere(txtSearchUser.Text);
gvUser.DataSource=dctrl.bindingListHere(txtSearchUser.Text);
gvUser.DataBind();

}

How can I limit the User Information in Gridview

viola martin
viola martin 9 years ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member