Click here to Skip to main content
15,914,225 members
Home / Discussions / C#
   

C#

 
GeneralRe: GetManifestResource problem Pin
DaveyM693-Mar-08 8:51
professionalDaveyM693-Mar-08 8:51 
GeneralRe: GetManifestResource problem Pin
ADLER13-Mar-08 11:24
ADLER13-Mar-08 11:24 
GeneralMonth and year control Pin
Yulianto.3-Mar-08 3:40
Yulianto.3-Mar-08 3:40 
GeneralRe: Month and year control Pin
Pete O'Hanlon3-Mar-08 3:46
mvePete O'Hanlon3-Mar-08 3:46 
GeneralRe: Month and year control Pin
Yulianto.3-Mar-08 3:49
Yulianto.3-Mar-08 3:49 
GeneralRe: Month and year control Pin
Pete O'Hanlon3-Mar-08 4:18
mvePete O'Hanlon3-Mar-08 4:18 
GeneralRe: Month and year control Pin
Yulianto.3-Mar-08 4:24
Yulianto.3-Mar-08 4:24 
GeneralRe: Month and year control Pin
Pete O'Hanlon3-Mar-08 5:04
mvePete O'Hanlon3-Mar-08 5:04 
GeneralRe: Month and year control Pin
PIEBALDconsult3-Mar-08 8:45
mvePIEBALDconsult3-Mar-08 8:45 
GeneralRetrieving text at a specific index from a text file Pin
jimmy2shoes3-Mar-08 3:21
jimmy2shoes3-Mar-08 3:21 
AnswerRe: Retrieving text at a specific index from a text file Pin
Eslam Afifi3-Mar-08 6:12
Eslam Afifi3-Mar-08 6:12 
Questionhow to add database fields dynamically to a crystal report in .net 2005 #1 Pin
Member 36683083-Mar-08 2:07
Member 36683083-Mar-08 2:07 
QuestionDatagridview, disable row selection Pin
alexander_perdum3-Mar-08 1:44
alexander_perdum3-Mar-08 1:44 
GeneralRe: Datagridview, disable row selection Pin
Xmen Real 3-Mar-08 4:51
professional Xmen Real 3-Mar-08 4:51 
GeneralRe: Datagridview, disable row selection Pin
alexander_perdum3-Mar-08 5:01
alexander_perdum3-Mar-08 5:01 
GeneralRe: Datagridview, disable row selection Pin
Xmen Real 3-Mar-08 5:12
professional Xmen Real 3-Mar-08 5:12 
GeneralRe: Datagridview, disable row selection Pin
alexander_perdum3-Mar-08 5:21
alexander_perdum3-Mar-08 5:21 
I've used this events, and with those, I can capture if I clicked on the other row etc.

But how can I prevent that the row I've clicked is not selected?

I've tried:

if (e.RowIndex != previous_line)
{
// There may not be clicked
MessageBox.Show("You are already editing a machine");
grid_machines.Rows[previous_line].Selected = true;
}

this results in the previous line, which is now selected again, but the arrow on the rowheader is still on the 'new' clicked row. So my old line is selected, but the new line has the editing arrow..?

Thank you
GeneralRe: Datagridview, disable row selection Pin
Xmen Real 3-Mar-08 5:26
professional Xmen Real 3-Mar-08 5:26 
GeneralRe: Datagridview, disable row selection Pin
alexander_perdum3-Mar-08 5:37
alexander_perdum3-Mar-08 5:37 
GeneralRe: Datagridview, disable row selection Pin
Xmen Real 3-Mar-08 14:26
professional Xmen Real 3-Mar-08 14:26 
Generaldouble click on a ListViewItem Pin
amit_833-Mar-08 1:44
amit_833-Mar-08 1:44 
GeneralRe: double click on a ListViewItem Pin
DaveyM693-Mar-08 2:29
professionalDaveyM693-Mar-08 2:29 
AnswerRe: double click on a ListViewItem Pin
mav.northwind3-Mar-08 19:36
mav.northwind3-Mar-08 19:36 
GeneralGet Namespace Name [modified] Pin
DaveyM693-Mar-08 1:30
professionalDaveyM693-Mar-08 1:30 
AnswerRe: Get Namespace Name Pin
TJoe3-Mar-08 2:07
TJoe3-Mar-08 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.