gridview question

  • Thread starter Thread starter mattdaddym
  • Start date Start date
M

mattdaddym

Hi all,

I have a situation where my users query an LDAP directory which I feed
into a datatable and then display into a gridview (is there a better
way?) I have added a column to the gridview with an "ADD" command. When
it is clicked, the information is going to be written into a SQL
database. Of course, more is to be done with this data later, but for
now I am stuck. I have tried programatically reading the row and cell
of the gridview and inserting into the sql database via a sqldatasource
but I am having all kinds of problems. I guess my 1st question is am I
approaching this problem the right way in your opinion. 1) query and
display ldap results 2) allow user to select a result 3) write result
to sql database.

I know I have shown my code here (it is a mess). I'm looking for some
guidance as to how I should try to accomplish this first.

I hope I was clear on the problem. Thanks.
 
I meant to say that I "have not" shown my code. I finally worked out
the problem, and now I can write the appropriate gridview row to a sql
database when I hit the add button. What I would like to do now is hide
some of the gridview columns because I don't need to user to see all of
them, but I do need to write the data to the sql database. Of course, I
could not load this data and just query the ldap again on Add but that
seems wasteful. I am having trouble hiding the columns and I have read
that once I hide a column that I will not be able to access the data
inside of it. Can anyone comment on this? Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top