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

DataGrid Woes..

Alright, so this is strange. someone let me know if this is a *bug* or not.

Whenever I would use Dataset.Merge(datarows()) method, I would always get an
exception (IndexOutOfRangeException) on the currency manager after a paint
was fired on the datagrid controls.

Old code was

currMan.Suspendbinding()

oDataRows() = someFunctionThatReturnsArrayofDataRows(param)

myDataset.Merge(oDataRows)

currMan.Resumebinding

as soon as the procedure exists and the paint is invoked, get the index out
of range exception.

However, I replaced it with..

for i = 0 to oDataRows.Length -1
myDataSet.myTable.ImportRow(oDataRows(i))
next

flawless...

Ideas?

Nov 20 '05 #1
1 1025
Logically, repaint overrides or resets temp variables up in memory. So they
aren't there.

Just one man's opinion.

"CJ Taylor" <[cege] at [tavayn] dit commmmm> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
Alright, so this is strange. someone let me know if this is a *bug* or not.
Whenever I would use Dataset.Merge(datarows()) method, I would always get an exception (IndexOutOfRangeException) on the currency manager after a paint
was fired on the datagrid controls.

Old code was

currMan.Suspendbinding()

oDataRows() = someFunctionThatReturnsArrayofDataRows(param)

myDataset.Merge(oDataRows)

currMan.Resumebinding

as soon as the procedure exists and the paint is invoked, get the index out of range exception.

However, I replaced it with..

for i = 0 to oDataRows.Length -1
myDataSet.myTable.ImportRow(oDataRows(i))
next

flawless...

Ideas?

Nov 20 '05 #2

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

Similar topics

7
by: Mark | last post by:
O, woe is me, to have seen what I have seen, see what I see! (That's Shakespeare for those who were wondering what I'm on about) I am "having fun" with cookies. And I wonder if I have...
0
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade...
3
by: Angel Cat | last post by:
Trying to get my jobs to send mail when job fails. Should be easy but it's giving me headache Had a whole slew of issues. Outlook is installed with a n outlook mail profile set up that can...
2
by: Andrew Thompson | last post by:
- NN 4.78 rendering woes, links at far left - I am trying to rework an old site, make it valid html and css, improving the x-browser and 'older browser' compatibility. My efforts so far, have...
0
by: Paul Sampson | last post by:
Hi, I have a typed dataset working nicely, bound to my datagrid (Windows forms) using stored procs for insert/update/delete. The first column contains the primary key of the base table, so...
3
by: John Smith | last post by:
Hello all: What is the best way to get a reference to an item selected in a data grid? What I am trying to do is have it so a user can select from a list in a data grid of all our employees and...
0
by: John Hopper | last post by:
Can someone please tell me why the datagrid doesn't databind and display rows once the Add button is clicked and the cmdSaveToDataset event fires, to add a row to the dataset? I've copied the code:...
0
by: Dhruba Bandopadhyay | last post by:
I need advise on ASP.NET & XML. I got a Web Service that I call in real-time to generate a XML document (in main memory, not file). I could use the .NET built-in XML document generation classes,...
1
by: barbara_dave | last post by:
Hi All, I'd like to add numericUpDown controls in every cell of a column of a datagrid. Is there some sample code I can get for reference? Thanks In Advance!
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.