Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
Questionseveral events - one action Pin
Glen Harvy6-Apr-07 17:29
Glen Harvy6-Apr-07 17:29 
AnswerRe: several events - one action Pin
Not Active6-Apr-07 17:43
mentorNot Active6-Apr-07 17:43 
GeneralRe: several events - one action Pin
Glen Harvy6-Apr-07 17:49
Glen Harvy6-Apr-07 17:49 
GeneralRe: several events - one action Pin
Sathesh Sakthivel6-Apr-07 18:02
Sathesh Sakthivel6-Apr-07 18:02 
GeneralRe: several events - one action Pin
Glen Harvy6-Apr-07 18:19
Glen Harvy6-Apr-07 18:19 
GeneralRe: several events - one action Pin
Sathesh Sakthivel6-Apr-07 18:22
Sathesh Sakthivel6-Apr-07 18:22 
GeneralRe: several events - one action Pin
Scott Dorman6-Apr-07 19:49
professionalScott Dorman6-Apr-07 19:49 
GeneralRe: several events - one action Pin
Glen Harvy6-Apr-07 23:07
Glen Harvy6-Apr-07 23:07 
Thanks - I knew it should be easy. I tried a couple of variations except "sender as" so I was at least on the right track.

I have several datagridviews that display the status of daily booking periods for tennis courts. Whenever a user clicks on one of the cells, the same action is taken no matter which datagridview is clicked with one exception - the name of the underlying datatable. I've set the variable part of each of the datatables in the datagridviews tag and hence the need to read that value.

I did of course do it the other way and have individual events call the required code and pass the hardcoded datatable value to it but that means duplication and I am trying to learn as I go. Obviously I'm trying to code efficiently as well as successfully Smile | :)

If there is something else to learn from this then I am all ears Big Grin | :-D

Glen Harvy

GeneralRe: several events - one action Pin
Scott Dorman7-Apr-07 4:28
professionalScott Dorman7-Apr-07 4:28 
GeneralRe: several events - one action Pin
Glen Harvy7-Apr-07 12:11
Glen Harvy7-Apr-07 12:11 
QuestionHow to add extra information to Buttons? Pin
Khoramdin6-Apr-07 16:38
Khoramdin6-Apr-07 16:38 
AnswerRe: How to add extra information to Buttons? Pin
Mark Greenwood6-Apr-07 19:12
Mark Greenwood6-Apr-07 19:12 
GeneralRe: How to add extra information to Buttons? Pin
Khoramdin6-Apr-07 20:17
Khoramdin6-Apr-07 20:17 
Questionhow to start other applications with no window ? Pin
hdv2126-Apr-07 15:47
hdv2126-Apr-07 15:47 
AnswerRe: how to start other applications with no window ? Pin
Sathesh Sakthivel6-Apr-07 16:12
Sathesh Sakthivel6-Apr-07 16:12 
QuestionC Function returns struct - how to use in c#? Pin
Grizzley906-Apr-07 11:53
Grizzley906-Apr-07 11:53 
AnswerRe: C Function returns struct - how to use in c#? Pin
Leslie Sanford6-Apr-07 14:11
Leslie Sanford6-Apr-07 14:11 
GeneralRe: C Function returns struct - how to use in c#? Pin
Grizzley907-Apr-07 2:38
Grizzley907-Apr-07 2:38 
GeneralRe: C Function returns struct - how to use in c#? Pin
Leslie Sanford7-Apr-07 4:39
Leslie Sanford7-Apr-07 4:39 
GeneralRe: C Function returns struct - how to use in c#? Pin
Grizzley907-Apr-07 5:24
Grizzley907-Apr-07 5:24 
GeneralRe: C Function returns struct - how to use in c#? Pin
Leslie Sanford7-Apr-07 5:39
Leslie Sanford7-Apr-07 5:39 
GeneralRe: C Function returns struct - how to use in c#? Pin
Grizzley907-Apr-07 5:53
Grizzley907-Apr-07 5:53 
QuestionGetting handler of current running Outllook application. Pin
pnpfriend6-Apr-07 10:19
pnpfriend6-Apr-07 10:19 
QuestionHow do i create a public variable? Pin
joaquimc6-Apr-07 9:49
joaquimc6-Apr-07 9:49 
AnswerRe: How do i create a public variable? Pin
SABhatti6-Apr-07 9:59
SABhatti6-Apr-07 9:59 

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.