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

CurrentRowIndex problem

guy
I have an application with a number of DataGrids bound to collections
I get exceptions thown when clicking ad then leaving a grid, but have
solved these by clearing the bindings, binding to a dummy collection and then
rebinding (messy but it works)
However one grid still fails, and also does not allow CurrentRowIndex to be
changed - it is fixed at -1, hence presumably the exception

the grid is readonly but the exception still occurs when read/write

has anyone got any ideas?

guy
Nov 21 '05 #1
4 1370
I had the same problem, and it seems to be a bug in .NET Framework 1.1.

For me the problem was solved when I installed SP1 for .NET Framework 1.1

Br

Kristian F. Thomsen

"guy" <gu*@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
I have an application with a number of DataGrids bound to collections
I get exceptions thown when clicking ad then leaving a grid, but have
solved these by clearing the bindings, binding to a dummy collection and
then
rebinding (messy but it works)
However one grid still fails, and also does not allow CurrentRowIndex to
be
changed - it is fixed at -1, hence presumably the exception

the grid is readonly but the exception still occurs when read/write

has anyone got any ideas?

guy

Nov 21 '05 #2
Can you post code and mark where the error(s) is occurring?

"guy" <gu*@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com:
I have an application with a number of DataGrids bound to collections
I get exceptions thown when clicking ad then leaving a grid, but have
solved these by clearing the bindings, binding to a dummy collection and
then
rebinding (messy but it works)
However one grid still fails, and also does not allow CurrentRowIndex to
be
changed - it is fixed at -1, hence presumably the exception

the grid is readonly but the exception still occurs when read/write

has anyone got any ideas?

guy


Nov 21 '05 #3
guy
Hi there is no code to post as it appears to be internal to the grid control
click.
I can reap the exception, but the dialogue still appears - its a datagrid
dialog so i cant supress it.

"scorpion53061" wrote:
Can you post code and mark where the error(s) is occurring?

"guy" <gu*@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com:
I have an application with a number of DataGrids bound to collections
I get exceptions thown when clicking ad then leaving a grid, but have
solved these by clearing the bindings, binding to a dummy collection and
then
rebinding (messy but it works)
However one grid still fails, and also does not allow CurrentRowIndex to
be
changed - it is fixed at -1, hence presumably the exception

the grid is readonly but the exception still occurs when read/write

has anyone got any ideas?

guy


Nov 21 '05 #4
guy
Thanks Kristian, I will see if I can get SP1 installed

cheers

guy

"Kristian F. Thomsen" wrote:
I had the same problem, and it seems to be a bug in .NET Framework 1.1.

For me the problem was solved when I installed SP1 for .NET Framework 1.1

Br

Kristian F. Thomsen

"guy" <gu*@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
I have an application with a number of DataGrids bound to collections
I get exceptions thown when clicking ad then leaving a grid, but have
solved these by clearing the bindings, binding to a dummy collection and
then
rebinding (messy but it works)
However one grid still fails, and also does not allow CurrentRowIndex to
be
changed - it is fixed at -1, hence presumably the exception

the grid is readonly but the exception still occurs when read/write

has anyone got any ideas?

guy


Nov 21 '05 #5

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

Similar topics

0
by: Lori | last post by:
Hi I am selecting a datagrid getting the currentrow, but don't know how I can get the selected value to show up in a textbox Here is my code Dim strCurrentGridID As String =...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
1
by: Lagur | last post by:
hi im having problem on getting proper CurrentRowIndex in DataGrid when column header is clicked (probably changes position or sorted out). how will i get the previous CurrentRowIndex even the...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
1
by: .NETn00b | last post by:
I am trying to convert the following windows app method, to use in an ASP.NET application: private void DataGrid1_CurrentCellChanged(object sender, EventArgs e) { int c =...
1
by: cmrchs | last post by:
Hi, What is the equivalent property in the DataGridView (.NET 2.0) of the CurrentRowIndex available in a DataGrid (.NET 1.1) thnx Chris ...
1
by: soumya07081973 | last post by:
I am new in vs2005 in vs2002 I often used in DATAGRID DataGrid.CurrentRowIndex=i (where i is the cursor pointing the record) But vs2005 I failed to find out .
1
by: Bill Fisher | last post by:
Disclaimer, I am very, VERY new to .net. I am currently working with vb.net Visual Studio 2003.and I have a problem with the CurrentRowIndex property of the DataGrid control. I load an xml...
1
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.