Print Page | Close Window

Data Binding properties

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6227
Printed Date: 29 March 2026 at 8:34pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Data Binding properties
Posted By: Boecky
Subject: Data Binding properties
Date Posted: 07 October 2003 at 5:26am

Hello, I'm searching for some information about how to use the databinding properties (from example the datagrid). I kept searching on the net but didn't find any good explanation...

What I exactly mean is, can I replace this code:

dgTest.DataSource = dsTest
dgTest.DataBind()

Into fill in some properties from the datagrid? (using visual studio)
I know it's a weird question, but it's difficult to explain what I really want to know




Replies:
Posted By: MorningZ
Date Posted: 07 October 2003 at 10:48am

like ar eyou asking if you can manually "fill" a Dataset... which would be the line right before the DataSource/DataBind line(s)

the answer is "yes".. only example i have ever run across though is in the book "Teach Yourself ASP.NET in 21 Days"..

but alas, there's more ways to skin a cat than just what you propose....

what about:
- Not Autogenerating Columns and using ItemTemplate instead?
- Use a repeater instead of a DataGrid if you do not need built in edit/delete/paging
- Bring back some "fill" data in your SQL statement?



-------------
Contribute to the working anarchy we fondly call the Internet



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net