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

"Key not found" Exception Assigning to DataSource Property of Grid

This is driving me mad. Can someone please put me out of my misery?

I have a DataSet which I wish to use as the data source for a grid control
(it is actually an Infragistics grid). When I assign to the DataSource
property like this

UltraGrid1.DataSource = MyDataSet

I get the following exception:

Key not found
Parameter name: key

The dataset has six columns, and it doesn't make any difference whether I
create the columns in advance in the grid or not. I have checked
meticulously that the grid has columns that exactly correspond to the
columns in the dataset; no more and no fewer.

Any ideas chaps?

TIA

Charles
Jun 4 '06 #1
3 2561
Charles,

Exact specifying the Table maybe

You can as well try the DataMember for that.

Cor

"Charles Law" <bl***@nowhere.com> schreef in bericht
news:O3**************@TK2MSFTNGP05.phx.gbl...
This is driving me mad. Can someone please put me out of my misery?

I have a DataSet which I wish to use as the data source for a grid control
(it is actually an Infragistics grid). When I assign to the DataSource
property like this

UltraGrid1.DataSource = MyDataSet

I get the following exception:

Key not found
Parameter name: key

The dataset has six columns, and it doesn't make any difference whether I
create the columns in advance in the grid or not. I have checked
meticulously that the grid has columns that exactly correspond to the
columns in the dataset; no more and no fewer.

Any ideas chaps?

TIA

Charles

Jun 4 '06 #2
Hi Cor

I'm not sure I follow you. The dataset contains only one table. I have also
tried using a datatable object as the data source, but I get the same
exception.

Charles
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Charles,

Exact specifying the Table maybe

You can as well try the DataMember for that.

Cor

"Charles Law" <bl***@nowhere.com> schreef in bericht
news:O3**************@TK2MSFTNGP05.phx.gbl...
This is driving me mad. Can someone please put me out of my misery?

I have a DataSet which I wish to use as the data source for a grid
control (it is actually an Infragistics grid). When I assign to the
DataSource property like this

UltraGrid1.DataSource = MyDataSet

I get the following exception:

Key not found
Parameter name: key

The dataset has six columns, and it doesn't make any difference whether I
create the columns in advance in the grid or not. I have checked
meticulously that the grid has columns that exactly correspond to the
columns in the dataset; no more and no fewer.

Any ideas chaps?

TIA

Charles


Jun 5 '06 #3
Problem solved. Mea culpa.

Charles
"Charles Law" <bl***@nowhere.com> wrote in message
news:uA**************@TK2MSFTNGP04.phx.gbl...
Hi Cor

I'm not sure I follow you. The dataset contains only one table. I have
also tried using a datatable object as the data source, but I get the same
exception.

Charles
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Charles,

Exact specifying the Table maybe

You can as well try the DataMember for that.

Cor

"Charles Law" <bl***@nowhere.com> schreef in bericht
news:O3**************@TK2MSFTNGP05.phx.gbl...
This is driving me mad. Can someone please put me out of my misery?

I have a DataSet which I wish to use as the data source for a grid
control (it is actually an Infragistics grid). When I assign to the
DataSource property like this

UltraGrid1.DataSource = MyDataSet

I get the following exception:

Key not found
Parameter name: key

The dataset has six columns, and it doesn't make any difference whether
I create the columns in advance in the grid or not. I have checked
meticulously that the grid has columns that exactly correspond to the
columns in the dataset; no more and no fewer.

Any ideas chaps?

TIA

Charles



Jun 5 '06 #4

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

Similar topics

8
by: Don Wash | last post by:
Hi There! I'm using VB.NET to create a TreeView application and unfortunately I could not find "Key" property in Node items of the TreeView. We used to have "Key" property in TreeView node...
0
by: Ralf Gedrat | last post by:
Hello! I have a Application, this throws after some time following exception: Item has already been added. Key in dictionary: "- 1" key being added: "- 1" I use Application.Run with...
5
by: Charles Law | last post by:
This is driving me mad. Can someone please put me out of my misery? I have a DataSet which I wish to use as the data source for a grid control (it is actually an Infragistics grid). When I assign...
0
by: Ismail Fatih Yıldırım | last post by:
I modified the RSACSPSample from MSDN to try out a simple commutative encryption model using RSA encryption but when i run the progrem the first encryption command works but during the second...
0
by: active | last post by:
Sometimes when I After I click "Start Debugging" I get a "File not Found" Exception. Could not load file or assembly 'FormTesting, Version=1.0.2646.36738, Culture=neutral, PublicKeyToken=null'...
5
by: Sendil kumar | last post by:
Hi All, The FtpWebRequest.GetResponse( ) method is not giving "550 File not found exception " when I do a directory list operation on a invalid(not present) directory in HP Unix and Sun Solaris...
1
by: wbosw | last post by:
I created the following Sub to fill a DataSet with the Table named Developer. It binds to the Grid with no problems. Public Sub SearchSkills() Dim sqlcmd3 As SqlCommand = New...
0
by: Brian Lampe | last post by:
On Apr 11, 7:25 am, subhash <chend...@hotmail.comwrote: If your service is using a port other than 80, you can specify it in the service instantiation's Url property: ...
1
by: RN1 | last post by:
Sub Page_Load(........) If Not Page.IsPostBack Then Call LoadData() End If End Sub Sub LoadData() Dim dSet As DataSet Dim sqlConn As SqlConnection Dim sqlDapter As SqlDataAdapter
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.