Click here to Skip to main content
15,900,816 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Get Namespace Name Pin
DaveyM693-Mar-08 2:35
professionalDaveyM693-Mar-08 2:35 
GeneralRe: Get Namespace Name - Solved Pin
DaveyM693-Mar-08 3:09
professionalDaveyM693-Mar-08 3:09 
GeneralRe: Get Namespace Name Pin
Pete O'Hanlon3-Mar-08 3:09
mvePete O'Hanlon3-Mar-08 3:09 
GeneralRe: Get Namespace Name Pin
DaveyM693-Mar-08 3:21
professionalDaveyM693-Mar-08 3:21 
GeneralRe: Get Namespace Name Pin
Pete O'Hanlon3-Mar-08 3:25
mvePete O'Hanlon3-Mar-08 3:25 
QuestionHow do I display contents of a spreasheet in a listView or datagrid Pin
Walaza3-Mar-08 1:18
Walaza3-Mar-08 1:18 
AnswerRe: How do I display contents of a spreasheet in a listView or datagrid Pin
Ashish Derhgawen3-Mar-08 4:57
Ashish Derhgawen3-Mar-08 4:57 
GeneralRe: How do I display contents of a spreasheet in a listView or datagrid Pin
Walaza3-Mar-08 6:10
Walaza3-Mar-08 6:10 
GeneralUsing a Stored Procedure in C# Pin
Vimalsoft(Pty) Ltd3-Mar-08 1:03
professionalVimalsoft(Pty) Ltd3-Mar-08 1:03 

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.