GridView

S

shapper

Hello,

I have a GridView and I an ASP.NET panel with various controls which
is a form.

I need to fill the form controls with the values of the gridview
record that was clicked.
I will need not only the values visible in the GridView but also all
the other values including the PK.

How can I do this?

Thanks,
Miguel
 
M

Masudur

Hello,

I have a GridView and I an ASP.NET panel with various controls which
is a form.

I need to fill the form controls with the values of the gridview
record that was clicked.
I will need not only the values visible in the GridView but also all
the other values including the PK.

How can I do this?

Thanks,
Miguel

Hi...

for your perticular problem you can accomplish this job in various
way...
lets discuss one way to solve the problme... while binding the grid
view retrive all the data we need
and then in column collection set visible property to false of the
columns that we dont want to show...
now we have all the data...
next in rowcommand event of the gridview grab the row and then
collection all the necessary info from row cells...
then next thing you do is to populate the formview control with the
infos..

okay thats lot things to do...
for simple steps...
use same datasource for both formview and gridview...
and in formview select the parameter of girdviews datakey....

Thanks
Masudur
www.kaz.com.bd
http://munnacs.110mb.com
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,076
Latest member
OrderKetoBeez

Latest Threads

Top