By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,578 Members | 1,626 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,578 IT Pros & Developers. It's quick & easy.

CurrentRowIndex problem

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.