Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
Questionhow to override ondatabinding in case of binding data to datagrid Pin
333soori23-Nov-06 17:54
333soori23-Nov-06 17:54 
AnswerRe: how to override ondatabinding in case of binding data to datagrid Pin
Jasmine250123-Nov-06 20:57
Jasmine250123-Nov-06 20:57 
Questiondrag and drop issue... Pin
Super Lloyd23-Nov-06 16:44
Super Lloyd23-Nov-06 16:44 
AnswerRe: drag and drop issue... Pin
Weckmann23-Nov-06 22:16
Weckmann23-Nov-06 22:16 
GeneralRe: drag and drop issue... Pin
Super Lloyd23-Nov-06 22:25
Super Lloyd23-Nov-06 22:25 
GeneralRe: drag and drop issue... Pin
Weckmann23-Nov-06 23:28
Weckmann23-Nov-06 23:28 
GeneralRe: drag and drop issue... Pin
Super Lloyd24-Nov-06 0:51
Super Lloyd24-Nov-06 0:51 
GeneralRe: drag and drop issue... Pin
Weckmann24-Nov-06 1:12
Weckmann24-Nov-06 1:12 
OK now Im trying to understand what you originally wanted. Wink | ;-)

The AllowedEffect has to be set at the beginning of the drag/drop operation. Afterwards it is read-only.

But nevertheless you can imitate the behaviour of Word:

Start the drag/drop operation with the allowed effects Move AND Copy.
Just fill the data in, but dont remove it yet from the source.
Then just set all target controls to allow ONLY Move and design the DragDrop event handlers in a way that the data is actually moved, so remove it from the source.
Now if the user drags it out of your application almost every other application will pick the copy effect because they dont have any drag/drop handler for a move operation from anything coming from somewhere else. And since you left the original data where it was at the beginning, everything done by other applications will be a copy operation.

And there is your Word behaviour. Inside your application you have a Move, outside you have a Copy.

Got you this time? Wink | ;-)


--------------------
Bertram Weckmann
www.svizzer.com
--------------------

QuestionHow to create an array of label ? Pin
stny200023-Nov-06 15:59
stny200023-Nov-06 15:59 
AnswerRe: How to create an array of label ? Pin
Christian Graus23-Nov-06 16:37
protectorChristian Graus23-Nov-06 16:37 
GeneralRe: How to create an array of label ? Pin
stny200023-Nov-06 17:04
stny200023-Nov-06 17:04 
GeneralRe: How to create an array of label ? Pin
Christian Graus23-Nov-06 17:13
protectorChristian Graus23-Nov-06 17:13 
GeneralRe: How to create an array of label ? Pin
stny200023-Nov-06 17:39
stny200023-Nov-06 17:39 
AnswerRe: How to create an array of label ? Pin
Amar Chaudhary23-Nov-06 16:46
Amar Chaudhary23-Nov-06 16:46 
GeneralRe: How to create an array of label ? Pin
stny200023-Nov-06 17:09
stny200023-Nov-06 17:09 
GeneralRe: How to create an array of label ? Pin
Amar Chaudhary23-Nov-06 17:18
Amar Chaudhary23-Nov-06 17:18 
GeneralRe: How to create an array of label ? Pin
stny200023-Nov-06 17:37
stny200023-Nov-06 17:37 
QuestionCorba & C# Pin
ezazazel23-Nov-06 14:49
ezazazel23-Nov-06 14:49 
AnswerRe: Corba & C# Pin
Paresh Gheewala23-Nov-06 16:06
Paresh Gheewala23-Nov-06 16:06 
QuestionA wired problem in static classes Pin
Amar Chaudhary23-Nov-06 11:57
Amar Chaudhary23-Nov-06 11:57 
AnswerRe: A wired problem in static classes Pin
Amar Chaudhary23-Nov-06 12:10
Amar Chaudhary23-Nov-06 12:10 
GeneralRe: A wired problem in static classes Pin
Christian Graus23-Nov-06 12:38
protectorChristian Graus23-Nov-06 12:38 
AnswerRe: A wired problem in static classes Pin
Rob Graham23-Nov-06 13:53
Rob Graham23-Nov-06 13:53 
GeneralRe: A wired problem in static classes Pin
Amar Chaudhary23-Nov-06 14:08
Amar Chaudhary23-Nov-06 14:08 
GeneralRe: A wired problem in static classes Pin
S. Senthil Kumar24-Nov-06 8:20
S. Senthil Kumar24-Nov-06 8:20 

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.