473,396 Members | 1,768 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.

"System.Data.DataViewManagerListItemTypeDescri ptor " could not be bound

Expand|Select|Wrap|Line Numbers
  1. //When cbxInvNum is changed, it will display all fields on dgDisplay datagrid from SaleReceipts Table where invoice number = to the selected invoice number
  2. string sql = "SELECT * WHERE InvoiceNumber = " + cbxInvNum.Text;
  3. SqlCommand cmd = new SqlCommand(sql, dbConnection);
  4. cmd.CommandType = CommandType.Text;
  5. SqlDataAdapter da = new SqlDataAdapter(cmd);
  6. DataTable dt = new DataTable();
  7. da.Fill(dt);
  8. dgDisplay.DataSource = dt;
When I run this code it gives the error:
The multi-part identifier "System.Data.DataViewManagerListItemTypeDescriptor " could not be bound.

It does catch the error but still displays the data on the datagrid, but I'd really like to know why this error occurs.
Oct 22 '08 #1
2 3128
Expand|Select|Wrap|Line Numbers
  1. //When cbxInvNum is changed, it will display all fields on dgDisplay datagrid from SaleReceipts Table where invoice number = to the selected invoice number
  2. string sql = "SELECT * WHERE InvoiceNumber = " + cbxInvNum.Text;
  3. SqlCommand cmd = new SqlCommand(sql, dbConnection);
  4. cmd.CommandType = CommandType.Text;
  5. SqlDataAdapter da = new SqlDataAdapter(cmd);
  6. DataTable dt = new DataTable();
  7. da.Fill(dt);
  8. dgDisplay.DataSource = dt;
When I run this code it gives the error:
The multi-part identifier "System.Data.DataViewManagerListItemTypeDescriptor " could not be bound.

It does catch the error but still displays the data on the datagrid, but I'd really like to know why this error occurs.
Well apparantly when i don't have a catch on that code it doesn't give any error...so I guess I'll just continue this way.

--George
Oct 24 '08 #2
Frinavale
9,735 Expert Mod 8TB
Well apparantly when i don't have a catch on that code it doesn't give any error...so I guess I'll just continue this way.

--George
It could be that you were seeing a First Time Exception?
Oct 24 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: dcrespo | last post by:
Hi all... Here is my infrastructure design of a "distributed" system: - Many (30-50) hosts connected via VPN to a server. - Each host manages a system that receives local data (stored in a local...
3
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I...
8
by: Henrik | last post by:
Hi Is there any way to see what the System process is doing? We have developed an application running at a production site to measure and optimize the production. The application needs to be...
0
by: JT | last post by:
This seems like it could be an asp.net bug. I am getting the following exception when I add OnSortCommand attribute to a datagrid. I have deleted the temp directories, rebooted etc and I have...
0
by: woollymammoth | last post by:
I can't assign a MS SQL Server table record value to a simple VB variable, should be an easy thing. Sample SQL Server table has the data in the record as a char(30) string, the column for that record...
14
by: Ronald S. Cook | last post by:
I'm just curious how you would handle this. In the cable industry, Comcast is referred to as an "MSO" (multiple systems operator) meaning they own many cable systems. Therefore a solution must be...
4
by: Peter Kanurer | last post by:
Assume I add in VisualCSharp 2005 References to Oracle.DataAccess AND System.Data.OracleClient to an application. Does this cause problems or can they co-exist in one application ?
2
by: Bill Fuller | last post by:
I have a dropdown combo box where the DataSource is bound to a CSLA BO returned from a WCF call. The dropdown list looks fine, but selecting an item returns...
3
by: =?Utf-8?B?UGFvbG8=?= | last post by:
I'm trying to populate a rich text box with the results of a query, thus: private void button1_Click(object sender, EventArgs e) { var query from trans in dataSet.Transaction select new {...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.