template fields for unbound grid

M

mirin

I have an unbound gridview named grdTemp.

On the click of a button, I bind grdTemp to a datasource as below:

grdTemp.DataSource = dsTemp;
grdTemp.DataBind();

Works fine and I can see the data.
The datasource returns records with three text fields and one boolean
field

What I need is to be able to display the text values in textboxes and
the boolean value in a checkbox.
How can I achieve this?

I know how to do this on a bound gridview using templatefields. But I
really need to use an unbound gridview since my actual data will be be
based on complex conditions.

Much appreciate any help
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top