-
Adding rows to Web based Data Grids
I need to only add like 5 rows to a web based data grid and i am having problems
doing this. It seems as though there are no options for manaully adding
rows to a grid, and it seems like it has to be done by data binding. Basically
i want to create a grid where the first column is a description and the last
3 columns are always the same (like check boxes saying yes, no and maybe).
All i need to do is fill the first column but this is proving to be problemsome.
I created a table and simply added the 5 rows and tried to data bind it
to that column but still no beans. The grid does not even show up on the
web page (perhaps because it has now rows???).
If there is a way to manually add rows to a data grid that would be great
if not could somebody please list some sample code that shows how to create
an array, fill it with the 5 words, and then data bind that array to the
data grid manually.
Thanks much
Christian
-
Re: Adding rows to Web based Data Grids
"Christian" <crs117@aol.com> wrote:
>
>I need to only add like 5 rows to a web based data grid and i am having
problems
>doing this. It seems as though there are no options for manaully adding
>rows to a grid, and it seems like it has to be done by data binding. Basically
>i want to create a grid where the first column is a description and the
last
>3 columns are always the same (like check boxes saying yes, no and maybe).
> All i need to do is fill the first column but this is proving to be problemsome.
> I created a table and simply added the 5 rows and tried to data bind it
>to that column but still no beans. The grid does not even show up on the
>web page (perhaps because it has now rows???).
>
>If there is a way to manually add rows to a data grid that would be great
>if not could somebody please list some sample code that shows how to create
>an array, fill it with the 5 words, and then data bind that array to the
>data grid manually.
>
>Thanks much
>
>Christian
Well i figured out how to get the data binding working but i would still
like to know if its possible add rows outside of data binding.
One last thing, i use checkboxes (using the template column option) for the
options, and i need to know how to retrieve input from these checkboxes inside
of the data grid.
Thanks for any help
Christian
-
Re: Adding rows to Web based Data Grids
Please could somebody help me better understand some aspects of the web based
data grids. What i have done is create a web data grid that has 1 data bound
column followed by 3 template based columns that contain Checkboxes. I need
to be able to find out the values of the checkboxes in the different columns,
and up to this point nothing i have tried has worked. The checkboxes themselves
are actual controls, but i cannot find the combination of commands to access
thier id's. I am guessing i have to access them as child controls but i
have no idea on how to do this. Any help would be very greatly appreciated.
I really need to figure this out to finish this app.
Christian
-
Re: Adding rows to Web based Data Grids
First thing you have to do is defined your own id when you generating check
boxes dynamically.And try to use FindControl method to access the value of
check box.I did't try this.This is my idea,if this one is worked out kindly
infor me the same.,
"Christian" <crs117@aol.com> wrote:
>
>Please could somebody help me better understand some aspects of the web
based
>data grids. What i have done is create a web data grid that has 1 data
bound
>column followed by 3 template based columns that contain Checkboxes. I
need
>to be able to find out the values of the checkboxes in the different columns,
>and up to this point nothing i have tried has worked. The checkboxes themselves
>are actual controls, but i cannot find the combination of commands to access
>thier id's. I am guessing i have to access them as child controls but i
>have no idea on how to do this. Any help would be very greatly appreciated.
> I really need to figure this out to finish this app.
>
>Christian
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks