473,657 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Are there any non data bound controls left?

I'm trying to convert a windows app to ASP.NET using VS2005. I have
some web experience, but not much. 99% of the time if I need to
display data in a table in my windows apps I use a ListView object and
populate it manually using code like this:

ListView1.Items .Add("Jones")
ListView1.Items (ListView1.Item s.Count - 1).SubItems.Add ("123")

The result of this code would be a row added to the ListView like
this:

Jones 123
I have had terrible luck with data bound objects. I hate not having
manual control. There always seems to be a case where a simple SQL
statement is not enough to populate my ListView object (crazy users
maybe?). Am I the only one who likes populating list objects manually?

Anyway here's my question. I'm wondering if there is an ASP.NET
control in VS2005 that works similar to the ListView object (found in
VS2005 Windows Application) and will allow me to manually populate the
list without data binding. Maybe the GridView or the DataList?

Oct 26 '07 #1
3 1632
see HtmlTable class, for generics solution. you can also just build a
datatable on the fly or use the ObjectDataSourc e to map to your own object.
-- bruce (sqlwork.com)

cr113 wrote:
I'm trying to convert a windows app to ASP.NET using VS2005. I have
some web experience, but not much. 99% of the time if I need to
display data in a table in my windows apps I use a ListView object and
populate it manually using code like this:

ListView1.Items .Add("Jones")
ListView1.Items (ListView1.Item s.Count - 1).SubItems.Add ("123")

The result of this code would be a row added to the ListView like
this:

Jones 123
I have had terrible luck with data bound objects. I hate not having
manual control. There always seems to be a case where a simple SQL
statement is not enough to populate my ListView object (crazy users
maybe?). Am I the only one who likes populating list objects manually?

Anyway here's my question. I'm wondering if there is an ASP.NET
control in VS2005 that works similar to the ListView object (found in
VS2005 Windows Application) and will allow me to manually populate the
list without data binding. Maybe the GridView or the DataList?
Oct 26 '07 #2
You could always manually create a data set that matches the criteria you
need and then bind to that.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com
"cr113" <cr***@hotmail. comwrote in message
news:11******** *************@5 7g2000hsv.googl egroups.com...
I'm trying to convert a windows app to ASP.NET using VS2005. I have
some web experience, but not much. 99% of the time if I need to
display data in a table in my windows apps I use a ListView object and
populate it manually using code like this:

ListView1.Items .Add("Jones")
ListView1.Items (ListView1.Item s.Count - 1).SubItems.Add ("123")

The result of this code would be a row added to the ListView like
this:

Jones 123
I have had terrible luck with data bound objects. I hate not having
manual control. There always seems to be a case where a simple SQL
statement is not enough to populate my ListView object (crazy users
maybe?). Am I the only one who likes populating list objects manually?

Anyway here's my question. I'm wondering if there is an ASP.NET
control in VS2005 that works similar to the ListView object (found in
VS2005 Windows Application) and will allow me to manually populate the
list without data binding. Maybe the GridView or the DataList?
Oct 27 '07 #3
On Oct 26, 7:19 pm, "Andrew Faust" <and...@andrewf aust.comwrote:
You could always manually create a data set that matches the criteria you
need and then bind to that.

That sounds promising. I was wondering if you could do that.

Thanks!

Chuck.

Oct 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3742
by: HJ | last post by:
Hi all, Consider an Access 2002 run-time application on Windows XP. The controls on a form are locked until the user clicks an Edit button. The form is based on a query and all controls are bound.
0
884
by: Sam Martin | last post by:
my simple-bound object (Contact) to it's bound controls. I'm really stuck here. I've got a business class, e.g. Contact, that has public get() and set() methods for it's private fields. In my form load, im specifying the DataBindings to an instance of Contact's properties. I'm then, getting the Contact object to populate itself with data from database, but once it's loaded, the databound controls are not being
1
2576
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am looking for a robust solution for a major application. Almost every developer seems to come up with a completely different solution. While many of them are not bad, I really want a very good one. My database is SQL Server 2000 and I am using Visual...
2
1888
by: Wysiwyg | last post by:
I was hoping to get some opinions on the efficiency of various methods of reusing the same dropdown list data. Here is the situation: Multiple panels on maintenance pages with TAB menus across the top showing different panels. A DropDownList with a 50+ value/text entries exists on more than one panel but only one will be displayed at a time. Examples might be US states, countries, category codes, etc.
7
4206
by: Andrew McKendrick | last post by:
Hi, I've noticed a bug in VB.NET (latest .NET Framework)... - I have a TabControl on a form with several tabs. - Each tab contains text boxes that are bound to fields in a data source (DataBindings). - When I display a record and then try to access the .Text property of one of the text boxes on any tab except the current tab, the result is an Empty string.
5
10993
by: Bob | last post by:
Using Vs 2005 and Vb.NET I want to give users a message asking if they're sure they want to close the form if they had made changes to the underlying data. How do I detect if changes had been made by user but not yet saved? Thanks, Bob
3
1963
by: phonl | last post by:
I am a vb6 ADO developer looking at vb.net 2005 and ADO2.net. I used the vb.net 2005 data wizard to bind some controls to a database. Now I want to run a select query and have the bound controls reflect the change from the query. How would I do that? The wizard created a TableAdapter, BindingSource, and DataSet. Somehow I need to run feed them a select query to update the data.
2
4518
by: gmccallum | last post by:
I have a data entry screen using controls bound through a bindingSource, TableAdaptor and a BindingNavigator to move through the records. When I have an data entry error (such as Null for a value) I get the following error raised all the way to the App.Run command. This is not a dataGridView, so I can not use that DataError event to catch it. I have tried the BindingSource_DataError event, but that does not seem to get fired. There is...
14
14635
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control so I get the ObjectDataSource. No problem ..... ObjectDataSource src = .... //is ok i have it
5
9139
by: Ashutosh | last post by:
Hi, I have a un-typed table and 5 combo box on the form. All these combo box have this table as the data source. Now I want to be able to select different values using the 5 combo box. But when I change the value in one combo box, it changes the value in all other combo box. How can I make all the 5 combo box retain their individual (different values)? Thanks & Regards,
0
8394
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6164
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.