GridView

  • Thread starter Thread starter shapper
  • Start date Start date
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
 
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
 
Back
Top