473,757 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataView vs. DataGridView

What is the real difference between the DataView and the DataGridView?
Is the DataView even a control or is it merely a class? With methods
that allow you to edit rows and columns it seems like it would be a
control that you could drag and drop on a form in the designer but I
cannot find the DataView control in the toolbox. I have used a
DataGridView before but I was wondering if DataView has better
functionality.
Thanks!

-E

Jul 6 '07 #1
2 11224
DataView is not a control. It is a type that is used to perform
filtering on a DataTable without actually changing the data in the data
table. This way, you can separate the data from the presentation of the
data (in this case, presentation meaning a view on the data, where it is
sorted, or filtered).

The DataGridView is a control that allows you to view tabular data, from
a DataTable, or other sources.

It just so happens that the naming is similar.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

<ew******@gmail .comwrote in message
news:11******** ************@n2 g2000hse.google groups.com...
What is the real difference between the DataView and the DataGridView?
Is the DataView even a control or is it merely a class? With methods
that allow you to edit rows and columns it seems like it would be a
control that you could drag and drop on a form in the designer but I
cannot find the DataView control in the toolbox. I have used a
DataGridView before but I was wondering if DataView has better
functionality.
Thanks!

-E

Jul 6 '07 #2
Ahh, excellent. Thank you for the answer. That was precisely the
information that I needed.
-E


On Jul 6, 3:09 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
DataView is not a control. It is a type that is used to perform
filtering on a DataTable without actually changing the data in the data
table. This way, you can separate the data from the presentation of the
data (in this case, presentation meaning a view on the data, where it is
sorted, or filtered).

The DataGridView is a control that allows you to view tabular data, from
a DataTable, or other sources.

It just so happens that the naming is similar.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om

<ewing...@gmail .comwrote in message

news:11******** ************@n2 g2000hse.google groups.com...
What is the real difference between the DataView and the DataGridView?
Is the DataView even a control or is it merely a class? With methods
that allow you to edit rows and columns it seems like it would be a
control that you could drag and drop on a form in the designer but I
cannot find the DataView control in the toolbox. I have used a
DataGridView before but I was wondering if DataView has better
functionality.
Thanks!
-E- Hide quoted text -

- Show quoted text -

Jul 6 '07 #3

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

Similar topics

0
1775
by: michael schindler | last post by:
if (dataGrid1.CurrentRowIndex == -1) Wie geht dies mit dem neuen Dataview? Ich möchte abfragen, ob etwas selektiert ist und wenn ich datagridview.currentcell.rowindex abfrage fällt das programm um wenn nichts markiert ist. Was nicht gerade in meinem Sinne ist. Danke
7
5628
by: Rich | last post by:
Hello, I am pulling master data from one master table and detail data from two detail tables. The rows from the master data are displayed in textboxes on my form which are bound to the data with databinding. The data from the 2 detail tables are displayed in 2 datagridviews. I filter each datagridview with a Dataview object using the dataview.Rowfilter property. This is sort of working except that I am getting an except on one of my...
5
1385
by: Danny M | last post by:
What is the difference?
1
267
by: Raul | last post by:
My problem is the following one it is in a datagridview I am showing some data and I would like to locate me in a certain line. Ex. Locate me in a line that has the telephone 999 and this orderly one for name ID - NAME - TELEPHONE 1 - AAA - 111 2 - BBB - 444 3 - CCC - 555
0
1325
by: ME | last post by:
I have an application that displays data in a DataGridView. The data is in a DataView that is sorted and at times filtered. One of the columns I have in the dataview is a boolean field called "selected". Typically the DataView will either be sorted or filtered by this column. However when the user toggles the row value for this column (and others as well) in the DataGridView and ends the edit the data in the dataview changes, causing...
2
1896
by: Christopher | last post by:
Hi, I am writing a database application and now I need to display some data and I have a question about it. The data is stored in a typed dataset. In my MainForm I have a datagridview. the datasource of this datagrid is a dataview. The problem I have is that I have data from one table and foreignkeys to other tables in the database. When I create my view I would like to view the data from the second
0
1134
by: =?Utf-8?B?UHVjY2E=?= | last post by:
I have a couple of datagrids on a form that its datasources are a couple of dataviews. When I refresh the datagridview controls does it display the latest data from dataview? Thank you. -- Thanks.
1
1993
by: jaholm | last post by:
I have a datagridview bound to a dataview of a typed dataset. The binding is accomplished with a bindingsource object. When I programatically modify one of the datarows in the datatable of the underlying dataset, I want the datagridview to reflect the changes in the datarow. However, I am not able to make this happen. Which object should I refresh, dataset, dataview, or datagridview? And how is this done? My implementation is in VB2008,...
3
5741
by: Andrus | last post by:
I have DataGridView in virtual mode containing 3500 rows. In code below, assigning to RowCount value to 3500 takes 8 seconds. CPU usage goes high at this time. Stepping by F11 into user code shows few celltemplate property getters and combobox/datecombo constructor calls without database access which does not take a lot of time. Debug output (below) shows lot of messages Stepping over non-user code. Running in release mode from...
0
9297
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
10069
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
9904
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
9884
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
7285
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
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3828
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
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2697
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.