473,396 Members | 1,860 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,396 software developers and data experts.

setdatabinding

cj
VB 2003 allowed datagrid1.datasource = catds.tables("calls") and also
datagrid1.setdatabinding(catds, "calls")

What was the difference? I not sure I ever knew.

Now in VB2005 there is no datagrid but instead a datagridview. It only
offers DataGridView1.DataSource = catds.tables("calls")

I'm getting confused. Why isn't setdatabinding available?
Nov 16 '07 #1
5 4502
cj,

In 2005 is as well the DataGrid available, it seems that they though that if
you have a plane you don't need a cargoship. A DataGridView is a complete
different control then a DataGrid. You can find the DataGrid when you right
click on your toolbox and then select it.

The DataGridView uses a bindingsource. The DataTable works only with
DataTables and DataSets. A DataGridView can only work with all kind of
single collections (like the DataTable and now too by instance with the new
DBML DataBase with Linq tables). However the DataGridView can not be
databinded to a DataSet like the DataGrid.

Cor

"cj" <cj@nospam.nospamschreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
VB 2003 allowed datagrid1.datasource = catds.tables("calls") and also
datagrid1.setdatabinding(catds, "calls")

What was the difference? I not sure I ever knew.

Now in VB2005 there is no datagrid but instead a datagridview. It only
offers DataGridView1.DataSource = catds.tables("calls")

I'm getting confused. Why isn't setdatabinding available?
Nov 17 '07 #2
Correction
>The DataTable works only with DataTables and DataSets.
I assume that most understood that I was meaning the DataGrid
works...............

However for those who did not.

Cor

Nov 17 '07 #3
Hi Cj,
VB 2003 allowed datagrid1.datasource = catds.tables("calls") and also
datagrid1.setdatabinding(catds, "calls") What was the difference?

The DataGrid.SetDataBinding method sets the DataSource and DataMember
properties at run time. You can consider this method as a helper method to
set the DataSource and DataMember properties at run time. Note that you
must use the SetDataBinding method at run time to reset the DataSource
property.
>Now in VB2005 there is no datagrid but instead a datagridview. It only
offers DataGridView1.DataSource = catds.tables("calls") Why isn't
setdatabinding available?

Maybe our product team didn't think the SetDataBinding method is necessary
to the DataGridView, so the DataGridView doesn't have a SetDataBinding
method.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 19 '07 #4
cj
thanks

Cor Ligthert[MVP] wrote:
Correction
>The DataTable works only with DataTables and DataSets.

I assume that most understood that I was meaning the DataGrid
works...............

However for those who did not.

Cor
Nov 19 '07 #5
cj
Thanks

Linda Liu[MSFT] wrote:
Hi Cj,
>VB 2003 allowed datagrid1.datasource = catds.tables("calls") and also
datagrid1.setdatabinding(catds, "calls") What was the difference?

The DataGrid.SetDataBinding method sets the DataSource and DataMember
properties at run time. You can consider this method as a helper method to
set the DataSource and DataMember properties at run time. Note that you
must use the SetDataBinding method at run time to reset the DataSource
property.
>Now in VB2005 there is no datagrid but instead a datagridview. It only
offers DataGridView1.DataSource = catds.tables("calls") Why isn't
setdatabinding available?

Maybe our product team didn't think the SetDataBinding method is necessary
to the DataGridView, so the DataGridView doesn't have a SetDataBinding
method.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 19 '07 #6

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

Similar topics

10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
0
by: hillscottc | last post by:
I have two DataAdapters....1)daStandard does a SELECT *, and 2)daDuplicates uses a stored proc which returns only rows with some duplicate data. Problem is, when I butRefresh_Click and I have...
2
by: Michael | last post by:
Hi guys, I'm new in developing applicationa in C# and I have a very strange effect to display my data in the DataGrid: the method SetDataBinding is unknown for my DataGrid I use the following...
0
by: Patrick | last post by:
I'm working on a contact management application, and need a hand with one aspect... Here's what I want to create: ------------------------------------ A form split into two parts. There is a...
19
by: juli jul | last post by:
Hello, I would like to know if there is a function which is running during the runtime of my program all the time and where I could place events overloading and things I need to check during the...
0
by: Tin Man | last post by:
I am trying to change my datagrid source by resetting the datasource property. It wasn't working so I looked in the docs and it said the I have to use the SetDataBinging method of the datagrid. ...
0
by: Sam | last post by:
Hello all, Would someone explain the differenct between using datagrid SetDataBinding method at runtime and using DataSource and DataMember of datagrid? Regards, Sam
7
by: Mike | last post by:
i have a small difficulties with BindingSource and dataGridView bind db has properly opened and bind doesn't works. Unfortunately I didn't find any good example how to connect MS Access with...
3
by: codefragment | last post by:
Hi I want to bind a datagrid to a dataset for the table "ProductProductPhoto" in the AdventureWorks database in SQL Server 2005, however I can't because the binding fails on...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
0
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,...
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...
0
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,...

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.