Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
QuestionNew Table Pin
Alessio Granzotto20-Feb-09 1:22
Alessio Granzotto20-Feb-09 1:22 
AnswerRe: New Table Pin
moon_stick20-Feb-09 1:32
moon_stick20-Feb-09 1:32 
GeneralRe: New Table Pin
Nagy Vilmos20-Feb-09 1:46
professionalNagy Vilmos20-Feb-09 1:46 
GeneralRe: New Table Pin
moon_stick20-Feb-09 2:06
moon_stick20-Feb-09 2:06 
GeneralRe: New Table Pin
Alessio Granzotto20-Feb-09 1:58
Alessio Granzotto20-Feb-09 1:58 
GeneralRe: New Table Pin
musefan20-Feb-09 2:05
musefan20-Feb-09 2:05 
GeneralRe: New Table Pin
moon_stick20-Feb-09 2:05
moon_stick20-Feb-09 2:05 
QuestionDataGridView selection problem Pin
pedersen-roxen20-Feb-09 1:20
pedersen-roxen20-Feb-09 1:20 
Hi,


I'm using a DataGridView to display a number of files. I would like to use a ContextMenuStrip to give the user access to some basic functionality for manipulating the files. I have managed to do so, the context menu works and I have determined that the correct cells are being affected by the actions on the context menu. How ever, when I left click a file in my gridview the file is selected and thus highlighted. I would like this to happen when I right click the file to bring up the context menu too.

This snippet does the work if I disable the context menu:


private void viewFiles_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
  if (e.Button == MouseButtons.Right)
  {
    // Here we need to clear the selection!..
    viewSessions.Rows[e.RowIndex].Selected = true;
  }
}


I guess that what I want is to execute this code before showing the context menu, right? Any ideas?
AnswerRe: DataGridView selection problem Pin
musefan20-Feb-09 2:44
musefan20-Feb-09 2:44 
QuestionHow can we open any .doc/image/..... file on PC through remote place mobile [modified] Pin
aashish patidar20-Feb-09 1:18
aashish patidar20-Feb-09 1:18 
JokeRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
Eddy Vluggen20-Feb-09 2:15
professionalEddy Vluggen20-Feb-09 2:15 
GeneralRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
aashish patidar20-Feb-09 2:25
aashish patidar20-Feb-09 2:25 
RantRe: How can we open any .doc/image/..... file on PC through remote place mobile PinPopular
Nagy Vilmos20-Feb-09 2:37
professionalNagy Vilmos20-Feb-09 2:37 
JokeRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
musefan20-Feb-09 2:54
musefan20-Feb-09 2:54 
GeneralRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
EliottA20-Feb-09 2:54
EliottA20-Feb-09 2:54 
GeneralRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
Nagy Vilmos20-Feb-09 3:27
professionalNagy Vilmos20-Feb-09 3:27 
GeneralRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
led mike20-Feb-09 4:31
led mike20-Feb-09 4:31 
AnswerRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
EliottA20-Feb-09 2:15
EliottA20-Feb-09 2:15 
AnswerRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
Nagy Vilmos20-Feb-09 2:19
professionalNagy Vilmos20-Feb-09 2:19 
AnswerRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
musefan20-Feb-09 2:51
musefan20-Feb-09 2:51 
AnswerRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
Dan Neely20-Feb-09 3:24
Dan Neely20-Feb-09 3:24 
AnswerRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
Pete O'Hanlon20-Feb-09 4:14
mvePete O'Hanlon20-Feb-09 4:14 
GeneralRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
EliottA20-Feb-09 4:22
EliottA20-Feb-09 4:22 
GeneralRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
led mike20-Feb-09 5:06
led mike20-Feb-09 5:06 
GeneralRe: How can we open any .doc/image/..... file on PC through remote place mobile Pin
Pete O'Hanlon20-Feb-09 8:32
mvePete O'Hanlon20-Feb-09 8:32 

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.