473,388 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

ASP.NET vs VB.NET - DataView

One more question - why is it that the dataview samples all seem to be in
ASP.NET and it only works in this? Surely they should port between both
platforms?

I might add, work fine in ASP.NET - given import namespace = "system.data"
of course.

But when I come to trying it out in VB.NET windows app, even with IMPORTS
system.data it does not at all like the DATAVIEW declarations.

Any ideas for a novice like me. Very much thanks for reading my problem

Regards,
Ant
Nov 21 '05 #1
4 1706
Antoine,

The dataview is standard used in a windowform application with a lot of
samples about that, are you not mixing this up with the viewstate which is
of course not in a windowform because there is not any need for it?

Cor
One more question - why is it that the dataview samples all seem to be in
ASP.NET and it only works in this? Surely they should port between both
platforms?

I might add, work fine in ASP.NET - given import namespace = "system.data"
of course.

But when I come to trying it out in VB.NET windows app, even with IMPORTS
system.data it does not at all like the DATAVIEW declarations.

Any ideas for a novice like me. Very much thanks for reading my problem

Regards,
Ant

Nov 21 '05 #2
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Antoine,

The dataview is standard used in a windowform application with a lot of
samples about that, are you not mixing this up with the viewstate which is
of course not in a windowform because there is not any need for it?

Cor


It is the DATAVIEW I think I am having problem with based onthe MSDN sample.

http://msdn.microsoft.com/library/de...classtopic.asp

When I put the code on a form class, it highlights a problem on two lines
Dim firstView As dataview = New dataview(myTable)
Dim secondView As dataview = New dataview(myTable)

the first dataview entry is highlighted - the debug is "type expected".

As the ASP.NET version works fine and seems dependant on import namespace
system.data , for using it on VB windows app tried Imports system.data but
that doesnt help. Just wondered why the technique does not work directly on
VB.NET windows app, where am I going wrong I wonder?

Thanks a bundle

Ant
Nov 21 '05 #3
Antoine,

This should work,

However this easy sample I sand yesterday to this newsgroup, which you can
maybe try.
http://groups.google.com/groups?selm...TNGP12.phx.gbl

I hope this helps?

Cor

"Antoine" <mf****@dsl-spam.pipex.com>
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Antoine,

The dataview is standard used in a windowform application with a lot of
samples about that, are you not mixing this up with the viewstate which
is
of course not in a windowform because there is not any need for it?

Cor


It is the DATAVIEW I think I am having problem with based onthe MSDN
sample.

http://msdn.microsoft.com/library/de...classtopic.asp

When I put the code on a form class, it highlights a problem on two lines
Dim firstView As dataview = New dataview(myTable)
Dim secondView As dataview = New dataview(myTable)

the first dataview entry is highlighted - the debug is "type expected".

As the ASP.NET version works fine and seems dependant on import namespace
system.data , for using it on VB windows app tried Imports system.data but
that doesnt help. Just wondered why the technique does not work directly
on
VB.NET windows app, where am I going wrong I wonder?

Thanks a bundle

Ant

Nov 21 '05 #4
THIS is tried, and with just a couple of edits, it works. (Had to dim the
datatable in the declarations for dtVBreg).

However, the MSDN one surely didn't yesterday at least.
I tried the code now, and it does.
I think this comes down to me being a newb and something really, really,
dumb.

I just pasted the code here (at work) and its fine even without any datagrid
controls on the page on a spanking new empty project (completely as is). I
have NO idea why the same image doesn't produce the same results at home. I
might try again and see what happens next week.

Oh well :o)
Sorry about that but thanks for the tip and sample.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
Antoine,

This should work,

However this easy sample I sand yesterday to this newsgroup, which you can
maybe try.
http://groups.google.com/groups?selm...TNGP12.phx.gbl
I hope this helps?

Cor

"Antoine" <mf****@dsl-spam.pipex.com>
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Antoine,

The dataview is standard used in a windowform application with a lot of
samples about that, are you not mixing this up with the viewstate which
is
of course not in a windowform because there is not any need for it?

Cor


It is the DATAVIEW I think I am having problem with based onthe MSDN
sample.

http://msdn.microsoft.com/library/de...classtopic.asp
When I put the code on a form class, it highlights a problem on two lines Dim firstView As dataview = New dataview(myTable)
Dim secondView As dataview = New dataview(myTable)

the first dataview entry is highlighted - the debug is "type expected".

As the ASP.NET version works fine and seems dependant on import namespace system.data , for using it on VB windows app tried Imports system.data but that doesnt help. Just wondered why the technique does not work directly
on
VB.NET windows app, where am I going wrong I wonder?

Thanks a bundle

Ant


Nov 21 '05 #5

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

Similar topics

0
by: RPI_alum | last post by:
I've been experiencing some frustrating behavior that I believe may be a MS bug in the Framework. Has anyone else experienced this, know a better way to resolve it, or if it is an actual MS bug ...
9
by: jwedel_stolo | last post by:
Hi I'm creating a dataview "on the fly" in order to sort some data prior to writing out the information to a MS SQL table I have used two methods in order to determine the sort order of the...
4
by: Martin Schmid | last post by:
I am trying to implement a DataView for a DataGrid so I can sort at runtime by clicking on column headers. My initial page load works... it displays the data However, when I click a column...
2
by: Alpha | last post by:
I have a window application. In one of the form, a datagrid has a dataview as its datasource. Initial filtering result would give the datavew 3 items. When I double click on the datagrid to edit...
36
by: kjvt | last post by:
Based on a prior posting, I've written a function to convert a recordset to a dataview. The first call to the function for a given recordset works perfectly, but the second call always returns a...
13
by: Steve | last post by:
I have a form with a dataset and a datagrid. I created a dataview on this dataset. When the user modifies the datagrid, I look up this record in the dataview to make sure it is unique. Here is...
5
by: David Wender | last post by:
I want to create a dataview with a sort on multiple columns. However, when I use FindRows, I only want to search some of the columns, not all. Is this possible? I have not been able to make it...
3
by: astro | last post by:
I have a datagrid that is two levels down from the dataview (i.e. grandchild). I have spent 3 hours trying to get the syntax of determining it's real datasource (i.e. not it's source based on it's...
5
by: enceladus311 | last post by:
I'm trying to find a way to keep from having to fill a DataView after every PostBack to a page. Basically, the design is that I have a DataView that I fill, which I then set as the DataSource to a...
0
by: Pravin Pujari | last post by:
Hi All, I am using .net framework 1.1 and c#. I have one problem regarding dataview. I have one dataview to which sorting may be applied or may not be applied. I have one UI component where I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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...

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.