Click here to Skip to main content
15,902,922 members
Home / Discussions / C#
   

C#

 
GeneralRe: Should we use 'ref' keyword while passing objects also... Pin
Spunky Coder19-Oct-07 0:46
Spunky Coder19-Oct-07 0:46 
GeneralRe: Should we use 'ref' keyword while passing objects also... Pin
DavidNohejl19-Oct-07 1:00
DavidNohejl19-Oct-07 1:00 
GeneralRe: Should we use 'ref' keyword while passing objects also... Pin
Spunky Coder19-Oct-07 1:04
Spunky Coder19-Oct-07 1:04 
GeneralRe: Should we use 'ref' keyword while passing objects also... Pin
DavidNohejl19-Oct-07 1:32
DavidNohejl19-Oct-07 1:32 
AnswerRe: Should we use 'ref' keyword while passing objects also... Pin
Stefan Troschuetz19-Oct-07 0:38
Stefan Troschuetz19-Oct-07 0:38 
AnswerRe: Should we use 'ref' keyword while passing objects also... Pin
laserbaronen19-Oct-07 0:41
laserbaronen19-Oct-07 0:41 
AnswerRe: Should we use 'ref' keyword while passing objects also... Pin
Spunky Coder19-Oct-07 1:01
Spunky Coder19-Oct-07 1:01 
Questionset CurrentRow in a DataGridView Pin
jmaalouly18-Oct-07 23:29
jmaalouly18-Oct-07 23:29 
hello all!
i have a dataGridView that i add a context menu to each row when adding the row:

dataGridViewOrder.Rows.Add(itemRow);
dataGridViewOrder.Rows[dataGridViewOrder.Rows.Count - 2].ContextMenuStrip = contextMenuStripProducts;

on run time, if i left click the row then right click it and choose the menu, every think is ok.

but i have a problem when the currentRow is for exemple the first row, and i right click another row, it appear the menu of the second row but the changes made for the CurrentRow are applyed for the first Row, because it is the CurrentRow.

i was tryed to set the currentRow on mouse down event but a compilation error say that currentRow is read only...

please if some one have a solution or an idea for this problem, tell me about it.

thank u all!
regards.
jimmy.

jim MAA
AnswerRe: set CurrentRow in a DataGridView Pin
leppie19-Oct-07 5:05
leppie19-Oct-07 5:05 
QuestionToolStripMenuItems from SQL Pin
hobbsieoz18-Oct-07 23:18
hobbsieoz18-Oct-07 23:18 
AnswerRe: ToolStripMenuItems from SQL Pin
Jacky Yiu19-Oct-07 0:00
Jacky Yiu19-Oct-07 0:00 
GeneralRe: ToolStripMenuItems from SQL Pin
hobbsieoz19-Oct-07 0:02
hobbsieoz19-Oct-07 0:02 
AnswerRe: ToolStripMenuItems from SQL Pin
Jacky Yiu23-Oct-07 16:34
Jacky Yiu23-Oct-07 16:34 
QuestionC# 64-bit DLL? Pin
George_George18-Oct-07 23:15
George_George18-Oct-07 23:15 
AnswerRe: C# 64-bit DLL? Pin
martin_hughes19-Oct-07 0:14
martin_hughes19-Oct-07 0:14 
Questionnextline Pin
zeeShan anSari18-Oct-07 23:00
zeeShan anSari18-Oct-07 23:00 
AnswerRe: nextline Pin
Eduard Keilholz18-Oct-07 23:05
Eduard Keilholz18-Oct-07 23:05 
AnswerRe: nextline Pin
Guffa18-Oct-07 23:09
Guffa18-Oct-07 23:09 
GeneralRe: nextline Pin
zeeShan anSari18-Oct-07 23:15
zeeShan anSari18-Oct-07 23:15 
GeneralRe: nextline Pin
zeeShan anSari18-Oct-07 23:18
zeeShan anSari18-Oct-07 23:18 
GeneralRe: nextline Pin
Colin Angus Mackay18-Oct-07 23:24
Colin Angus Mackay18-Oct-07 23:24 
GeneralRe: nextline Pin
zeeShan anSari18-Oct-07 23:38
zeeShan anSari18-Oct-07 23:38 
QuestionPrinting in C# [modified] Pin
Maddie from Dartford18-Oct-07 22:59
Maddie from Dartford18-Oct-07 22:59 
AnswerRe: Printing in C# Pin
Abhijit Jana18-Oct-07 23:59
professionalAbhijit Jana18-Oct-07 23:59 
GeneralRe: Printing in C# Pin
Maddie from Dartford19-Oct-07 0:32
Maddie from Dartford19-Oct-07 0: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.