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
Administrator
Tech Writer
2.2k
1.5m
Can´t get dataGrid.select to work properly
Mar 10 2003 8:49 AM
All, I want to highlight several rows at the same time in a datagrid, as the user chooses with his mousebutton. I am using the following lines: System.Windows.Forms.DataGrid.HitTestInfo hti; hti = this.dataGrid1.HitTest(e.X,e.Y); this.dataGrid.Select(hti.Row); This works fine as long as the user doesn´t use his left mouseButton cause then everything that is highlighted disapears? Why doesn´t dataGrid.Select work when one is using the left mousebutton? I´m using the event dataGrid_MouseDown. Why is that? Thanks
Reply
Answers (
4
)
[help]some problems about SetupDiGetClassDevs()
other sites like www.codeproject.org