473,625 Members | 3,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What control would you use to display unbound data?

Mel
I want to display custom data in some sort of control on a web page.
By custom data I mean it's not in a database yet it just resides in a
List Box on a different tab . I just want to display the data and
allow the user to edit a couple values. What control can I use that
will allow me to manually fill it with whatever data I want and allow
user editing?

(using: asp.net 2.0, vb.net, visual studio 2005, winxp pro sp2)
Oct 23 '08 #1
19 3926
"Mel" <ML********@gma il.comwrote in message
news:d9******** *************** ***********@m32 g2000hsf.google groups.com...
I want to display custom data in some sort of control on a web page.
By custom data I mean it's not in a database yet it just resides in a
List Box on a different tab . I just want to display the data and
allow the user to edit a couple values. What control can I use that
will allow me to manually fill it with whatever data I want and allow
user editing?

(using: asp.net 2.0, vb.net, visual studio 2005, winxp pro sp2)
Most, if not all, of the databinding-compliant controls can work with pretty
much any data source, not just those fetched from a database.

E.g. it's perfectly possible to instantiate a DataTable object, define its
structure, and add rows to it so that e.g. a GridView can be bound to it...
http://msdn.microsoft.com/en-us/libr...datatable.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 23 '08 #2
Mel
On Oct 23, 9:59*am, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"Mel" <MLights...@gma il.comwrote in message

news:d9******** *************** ***********@m32 g2000hsf.google groups.com...
I want to display custom data in some sort of control on a web page.
By custom data I mean it's not in a database yet it just resides in a
List Box on a different tab . *I just want to display the data and
allow the user to edit a couple values. *What control can I use that
will allow me to manually fill it with whatever data I want and allow
user editing?
(using: asp.net 2.0, vb.net, visual studio 2005, winxp pro sp2)

Most, if not all, of the databinding-compliant controls can work with pretty
much any data source, not just those fetched from a database.

E.g. it's perfectly possible to instantiate a DataTable object, define its
structure, and add rows to it so that e.g. a GridView can be bound to it....http://msdn.microsoft.com/en-us/libr...datatable.aspx

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Okay cool. Can anyone provide a little example I can try?
Oct 23 '08 #3
Mel
On Oct 23, 3:13*pm, Mel <MLights...@gma il.comwrote:
On Oct 23, 9:59*am, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"Mel" <MLights...@gma il.comwrote in message
news:d9******** *************** ***********@m32 g2000hsf.google groups.com....
I want to display custom data in some sort of control on a web page.
By custom data I mean it's not in a database yet it just resides in a
List Box on a different tab . *I just want to display the data and
allow the user to edit a couple values. *What control can I use that
will allow me to manually fill it with whatever data I want and allow
user editing?
(using: asp.net 2.0, vb.net, visual studio 2005, winxp pro sp2)
Most, if not all, of the databinding-compliant controls can work with pretty
much any data source, not just those fetched from a database.
E.g. it's perfectly possible to instantiate a DataTable object, define its
structure, and add rows to it so that e.g. a GridView can be bound to it...http://msdn.microsoft.com/en-us/libr...datatable.aspx
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net

Okay cool. *Can anyone provide a little example I can try?
To be specific, can anyone provide an Asp.net 2.0/vb.net example?
Oct 23 '08 #4
"Mel" <ML********@gma il.comwrote in message
news:d5******** *************** ***********@k13 g2000hse.google groups.com...
Okay cool. Can anyone provide a little example I can try?
I already did - here it is again:
http://msdn.microsoft.com/en-us/libr...datatable.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 23 '08 #5
Mel
On Oct 23, 4:28*pm, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"Mel" <MLights...@gma il.comwrote in message

news:d5******** *************** ***********@k13 g2000hse.google groups.com...
Okay cool. *Can anyone provide a little example I can try?

I already did - here it is again:http://msdn.microsoft.com/en-us/libr...datatable.aspx

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Okay I've got my data table made and now it's bound to my DataGrid. I
have some columns in my DataGrid that I need to allow the user to
edit. Do I need to create all of the Edit Item Template fields
programmaticall y then?

I tried creating the columns and templates in the DataGrid (using the
Wizard) and then bind the data table to the DataGrid programmaticall y
but my columns just append to the columns I had defined with the
wizard.
Oct 24 '08 #6
"Mel" <ML********@gma il.comwrote in message
news:4b******** *************** ***********@8g2 000hse.googlegr oups.com...
>>Okay cool. Can anyone provide a little example I can try?

I already did - here it is
again:http://msdn.microsoft.com/en-us/libr...datatable.aspx

Okay I've got my data table made and now it's bound to my DataGrid. I
have some columns in my DataGrid that I need to allow the user to
edit. Do I need to create all of the Edit Item Template fields
programmaticall y then?

I tried creating the columns and templates in the DataGrid (using the
Wizard) and then bind the data table to the DataGrid programmaticall y
but my columns just append to the columns I had defined with the
wizard.
Do yourself a *HUGE* favour and ignore all of these wizards - IMO, they
cause more problems than they solve...

1) Create your DataTable and populate it.

2) Create a GridView manually (why are you still using a DataGrid, AAMOI?)
and define the columns to match those in the DataTable.

3) Bind the GridView to the DataTable.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 24 '08 #7
Mel
On Oct 24, 8:47*am, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"Mel" <MLights...@gma il.comwrote in message

news:4b******** *************** ***********@8g2 000hse.googlegr oups.com...
>Okay cool. Can anyone provide a little example I can try?
I already did - here it is
again:http://msdn.microsoft.com/en-us/libr...datatable.aspx
Okay I've got my data table made and now it's bound to my DataGrid. *I
have some columns in my DataGrid that I need to allow the user to
edit. *Do I need to create all of the Edit Item Template fields
programmaticall y then?
I tried creating the columns and templates in the DataGrid (using the
Wizard) and then bind the data table to the DataGrid programmaticall y
but my columns just append to the columns I had defined with the
wizard.

Do yourself a *HUGE* favour and ignore all of these wizards - IMO, they
cause more problems than they solve...

1) Create your DataTable and populate it.

2) Create a GridView manually (why are you still using a DataGrid, AAMOI?)
and define the columns to match those in the DataTable.

3) Bind the GridView to the DataTable.

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Oh, the example you provided uses a DataGrid. I can use a GridView
though.
Oct 24 '08 #8
Mel
On Oct 24, 9:19*am, Mel <MLights...@gma il.comwrote:
On Oct 24, 8:47*am, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:


"Mel" <MLights...@gma il.comwrote in message
news:4b******** *************** ***********@8g2 000hse.googlegr oups.com...
>>Okay cool. Can anyone provide a little example I can try?
>I already did - here it is
>again:http://msdn.microsoft.com/en-us/libr...datatable.aspx
Okay I've got my data table made and now it's bound to my DataGrid. *I
have some columns in my DataGrid that I need to allow the user to
edit. *Do I need to create all of the Edit Item Template fields
programmaticall y then?
I tried creating the columns and templates in the DataGrid (using the
Wizard) and then bind the data table to the DataGrid programmaticall y
but my columns just append to the columns I had defined with the
wizard.
Do yourself a *HUGE* favour and ignore all of these wizards - IMO, they
cause more problems than they solve...
1) Create your DataTable and populate it.
2) Create a GridView manually (why are you still using a DataGrid, AAMOI?)
and define the columns to match those in the DataTable.
3) Bind the GridView to the DataTable.
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net

Oh, the example you provided uses a DataGrid. *I can use a GridView
though.- Hide quoted text -

- Show quoted text -
When you say create the GridView manually, you mean in my aspx.vb
code? So I will need to create the column headings, row data, and
template fields?
Oct 24 '08 #9
"Mel" <ML********@gma il.comwrote in message
news:01******** *************** ***********@m36 g2000hse.google groups.com...
When you say create the GridView manually, you mean in my aspx.vb
code?
No - I mean in your aspx markup.
So I will need to create the column headings, row data, and
template fields?
You will need to create the columns and any template fields. The rows,
obviously, will be created when the GridView is bound to the DataTable...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 24 '08 #10

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

Similar topics

4
1924
by: Bill Stock | last post by:
The few times in the past that I've loaded unbound data, I've tended to cheat and use temp tables (not really unbound) or use code for small datasets. I'm currently involved in a project that has numerous tables in the 200 column range, with several thousand rows of data. A consulting review prior to my involvement stressed the wasted space and database speed as the major impetus for normalization. Although the db actually works fairly...
2
1783
by: Joe Au | last post by:
I first add a grid layout panel control to a web form, then put a data grid inside the panel. When I run the web form, the data grid is filled up but it throws outside the panel control. The panel control does not grow automatically to contain the entire data grid. How can I fix it? Beside, if I put a panel control under a data grid, the panel control still in its position no matter how many rows to be shown on the data grid. I think it...
1
1439
by: Darrel | last post by:
I use repeater controls and attach a dataset to it to create a list of records. When I want to display just one record, what should I bind the data to? I can use a repeater, but it clutters the DESIGN view just for one record. Is there a generally accepted 'best option' for what control to use to bind one record to? -Darrel
4
1352
by: joshlaw | last post by:
Hi! I've got some data that I want to display and edit in table-format, just like you would in Excel. It seems like this should be fairly straightforward, but I can't find any controls that do what I want. The closest one I've found is a ListView, but it will only let me edit the first column of data. What control should I be using? My data is very simple (about 10 ArrayLists, each with 2 strings followed by 2 floats).
0
846
by: Tobin | last post by:
Hello, I've developed in asp 6.0 a bit and am fooling around with asp.net 2.0. In asp 6.0 I displayed report type pages by generating dynamic HTML and wrote to the page using "respone.write".... In asp.net 2.0 I like the idea of the form view control and putting controls/data where I want them to be and data binding everything. This works great until the data relations get a little more complex.
0
1626
by: teknowledgy | last post by:
My SQL database has four tables. A couple of the columns in these tables use the xml data type which receive data from custom asp.net 2.0 user controls. Now I am trying to display the data from my tables in formviews that are bound to Object Data Sources. The problem is that the xml data is displaying as one long unbroken string. For instance, my contact user control lets the users enter their address, city, state, telephone and email...
1
2065
by: ganesah | last post by:
hi there, i need to create a program to continously display the received binary data (2bytes) from COM 8 in a console, however I'm having problem in doing so where i do nt see any data being displayed on the console after i run and compile the created program. How can i solve this problem? please explain on how to display the data continously.......shown below is the programming...please check and comment.. im using WIndows XP, Visual C++ 6.0...
1
1438
by: jbs255 | last post by:
Hello friends, i have create a datareport in vb 6.0. i have to display some data through programming in data report. i have to do in by datareport1.conrol( i ) = "abc". but the problem is that how i can know about index No. of controls. Pls. guide me soon. control (i) in data reports in vb6 thank you very much
3
932
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am familiar with datagrids in vs2003 but not familiar with 2005 (which I am now using.) I need to display a grid of some type with rows when a webpage loads with 5 columns. One column will be a row count, two columns will be text boxes for data entry and two columns will be checkboxes. I would like the user to be able to add rows of data as well as delete rows, all within this grid. I am using C#, just wondering if there are any...
0
8192
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
8637
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...
1
8358
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6119
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...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4195
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
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
1
1805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1504
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.