TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Maik Brauer
NA
12
43.2k
Problem with DataViewGrid when set a focus to a paticular cell
Jan 7 2009 5:34 PM
Hello,
I want to jump in the DataViewGrid to the next cell (X-Axis) with help of the Return(Enter)-Key and not with the Tabulator-Key.
This is not necessary on the normal way with kind of setting properties.
So the way to influence this behaviour is to Override the "ProcessDialogKey" with help of Inheritance in a new class.
After creating the Inheritance-class where I can Override this function it is possible to jump with Return(enter) to the next cell.
But now I have a problem with giving the focus to a particular cell, like the following code below:
DataGridView1.Item(DataGridView1.CurrentCell.ColumnIndex + 1, DataGridView1.CurrentRow.Index)
.Selected
=
True
Then it will lead into an error, see below:
Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.
The strange thing is that it is working when I use the DataViewGrid without the Inheritance.
So what needs to be done that it will work. Or is there a different solution for the jump function where I can use the Return-Key
without having the Override function.
If somebody needs more infos or more explanation, please let me know.
Many Thanks,
mbs-systems
Reply
Answers (
0
)
Suppressing zeroes or forcing a space in a data Grid
The meaning of a line of code in C# 3.0