Click here to Skip to main content
15,886,724 members
Home / Discussions / C#
   

C#

 
GeneralRe: Send Email in Arabic Pin
Gary Stafford24-Jun-09 5:56
Gary Stafford24-Jun-09 5:56 
QuestionWhen adding a webreference to my C# Windows Application i get:Operation is not valid due to the current state of the object. Pin
DotNetCoderJunior24-Jun-09 5:03
DotNetCoderJunior24-Jun-09 5:03 
AnswerRe: When adding a webreference to my C# Windows Application i get:Operation is not valid due to the current state of the object. Pin
Manas Bhardwaj24-Jun-09 5:07
professionalManas Bhardwaj24-Jun-09 5:07 
GeneralRe: When adding a webreference to my C# Windows Application i get:Operation is not valid due to the current state of the object. Pin
DotNetCoderJunior24-Jun-09 21:23
DotNetCoderJunior24-Jun-09 21:23 
QuestionGridView: row focus on mouse right click before ContextMenu pops up. Pin
Raybarg24-Jun-09 4:03
professionalRaybarg24-Jun-09 4:03 
AnswerRe: GridView: row focus on mouse right click before ContextMenu pops up. Pin
led mike24-Jun-09 4:42
led mike24-Jun-09 4:42 
AnswerRe: GridView: row focus on mouse right click before ContextMenu pops up. Pin
Ennis Ray Lynch, Jr.24-Jun-09 4:55
Ennis Ray Lynch, Jr.24-Jun-09 4:55 
AnswerRe: GridView: row focus on mouse right click before ContextMenu pops up. Pin
Manas Bhardwaj24-Jun-09 4:59
professionalManas Bhardwaj24-Jun-09 4:59 
The row is selected on the left mouse down.
while in your case, you do a right mouse click to show the menu strip.
You can instead fake this in the OnCellMouseClickEvent

if (e.Button == MouseButtons.Right)
{
	if(this.datagridview1.SelectedRows.Count > 0)
	    this.datagridview1.SelectedRows[0].Selected = false;
	this.datagridview1.Rows[e.RowIndex].Selected = true;
}


Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

GeneralRe: GridView: row focus on mouse right click before ContextMenu pops up. Pin
Raybarg24-Jun-09 21:08
professionalRaybarg24-Jun-09 21:08 
GeneralRe: GridView: row focus on mouse right click before ContextMenu pops up. Pin
Raybarg30-Jun-09 0:05
professionalRaybarg30-Jun-09 0:05 
QuestionMulti-threaded TCP Server Problem Pin
kordel22224-Jun-09 3:35
kordel22224-Jun-09 3:35 
AnswerRe: Multi-threaded TCP Server Problem Pin
Ennis Ray Lynch, Jr.24-Jun-09 4:05
Ennis Ray Lynch, Jr.24-Jun-09 4:05 
GeneralRe: Multi-threaded TCP Server Problem Pin
kordel22224-Jun-09 4:58
kordel22224-Jun-09 4:58 
GeneralRe: Multi-threaded TCP Server Problem Pin
Ennis Ray Lynch, Jr.24-Jun-09 5:02
Ennis Ray Lynch, Jr.24-Jun-09 5:02 
GeneralRe: Multi-threaded TCP Server Problem Pin
kordel22224-Jun-09 5:22
kordel22224-Jun-09 5:22 
GeneralRe: Multi-threaded TCP Server Problem Pin
Ennis Ray Lynch, Jr.24-Jun-09 5:27
Ennis Ray Lynch, Jr.24-Jun-09 5:27 
GeneralRe: Multi-threaded TCP Server Problem Pin
kordel22224-Jun-09 5:50
kordel22224-Jun-09 5:50 
GeneralRe: Multi-threaded TCP Server Problem Pin
led mike24-Jun-09 9:41
led mike24-Jun-09 9:41 
AnswerRe: Multi-threaded TCP Server Problem Pin
led mike24-Jun-09 4:38
led mike24-Jun-09 4:38 
GeneralRe: Multi-threaded TCP Server Problem Pin
kordel22224-Jun-09 8:29
kordel22224-Jun-09 8:29 
Questionc# windows application...... Pin
singhdurgesh24-Jun-09 2:47
singhdurgesh24-Jun-09 2:47 
AnswerRe: c# windows application...... Pin
Gary Stafford24-Jun-09 3:01
Gary Stafford24-Jun-09 3:01 
AnswerUse a console application or a Service Pin
Ennis Ray Lynch, Jr.24-Jun-09 3:10
Ennis Ray Lynch, Jr.24-Jun-09 3:10 
AnswerRe: c# windows application...... Pin
PIEBALDconsult24-Jun-09 4:51
mvePIEBALDconsult24-Jun-09 4:51 
QuestionUpdate Table Pin
kibromg24-Jun-09 2:13
kibromg24-Jun-09 2:13 

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.