Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

template fields for unbound grid

0 views
Skip to first unread message

mirin

unread,
Oct 7, 2008, 4:50:54 AM10/7/08
to
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

0 new messages