Looping through the container object in a datagrid?
I have a problem that I've been trying to solve for a couple of days
now. First off - I have a datagrid which receives data from a
dynamically composed dataset (i.e. every time there is a different
number of COLUMNS in a dataset with different names, but are in
sequencial order - column_name1, column_name2... and so on)
What I want to do is format the layout of the datagrid using container
object or any other formatting tool, but since my columns are
dynamically named I can't say Container.DataItem("column_name"),
because I don't know the column_name before hand... now if I could
know how many COLUMNS there are in a container and loop through them
creating the name inside a loop (i.e. adding an integer to the end of
column_name is how my names are set up) ... and I can't find a way to
see how many columns there are in the container.... is there a way to
get that, or is there any other way to do it?
|All times are GMT. The time now is 11:59 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.