Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

change datagrid row back color on mouse double click

Posted on 2006-05-08
9
Medium Priority
?
494 Views
Last Modified: 2012-08-13
how to permanent change backcolor of  row on double click event in datagrid so that we can identify that those colored rows user has dbl clicked.
pls give solution
0
Comment
Question by:reval1
  • 3
  • 2
5 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16635964
1) .NET version?

2) Do you mean DataGrid or DataGridView?

3) With 2003, the DataGrid is not really set up to do that.

Bob
0
 

Author Comment

by:reval1
ID: 16636661
For DataGrid .Net 2003
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16639027
Did that other post answer your question?

Bob
0
 

Author Comment

by:reval1
ID: 16705998
Hi bob
    I m making the back color of a row but it is not permanent like in msflexgrid we do .
once paint event fires to colore other row previous one get lost.
i want to keep them color permanent without recoloring again nd again in paint event.

is it possible?

regards!

reval
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 1000 total points
ID: 16718759
The brain dead DataGrid doesn't have a property to set the row's BackColor, so you need to use the Paint event.

Bob
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question