Skip to content

Display AD users data in a gridview

elai elai

Asked Jun 24, 2009, 1:16 AM EDT1 answer
Share
LinkedInX
Hello,

can anyone tell me how to display the AD user's data in a gridview.
so i have them on variables but i don't know how to pass this variables to a gridview.

thanks in advance to you all.

regards,

elai

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    you can create arraylist to hold AD user's data and then you can bind GridView to ArrayList.
    for eg:
    ArrayList al = new ArrayList();
    al.Add("AD user's data");
    now let's say ur GridView object is dg then do the following:
    dg.DataSource = al;
    dg.DataBind();
    That's it! if u still missed out...do reply here
     
    0