Bound textboxes to a datasource control

M

Mohammad Hashemian

Hello,
In a web based I have to implement a form with a DataGrid control. this
control shows some fields of a data table. I want when a user clicks on
a row, some other fields of that table be shown in some other controls
on form, for example two text boxes.
How can I bind that text boxes to my table's fields in such a way that
I haven't to connect to database and retrive their needed information,
each time a user clicks on a row?
thanks
 
R

rb

In a web based I have to implement a form with a DataGrid control. this
control shows some fields of a data table. I want when a user clicks on
a row, some other fields of that table be shown in some other controls
on form, for example two text boxes.
How can I bind that text boxes to my table's fields in such a way that
I haven't to connect to database and retrive their needed information,
each time a user clicks on a row?

For editing - forget it. This is not feasible. However, if your
intention is to provide a read-only solution then you can accomplish
this easily with a bit of a javascript. For example, you could create
a button/hyperlink/whatever-is-clickable column in your grid that
(onclick) calls this javascript function passing as parameters values
you'd like to show in those textboxes.

rb
 

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,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top