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

C#

 
GeneralRe: DataGrid Event Pin
Andres Manggini22-Mar-02 4:27
Andres Manggini22-Mar-02 4:27 
GeneralRe: DataGrid Event Pin
Mazdak22-Mar-02 4:44
Mazdak22-Mar-02 4:44 
GeneralRe: DataGrid Event Pin
Andres Manggini22-Mar-02 7:06
Andres Manggini22-Mar-02 7:06 
GeneralRe: DataGrid Event Pin
Mazdak22-Mar-02 7:51
Mazdak22-Mar-02 7:51 
GeneralRe: DataGrid Event Pin
Andres Manggini22-Mar-02 8:09
Andres Manggini22-Mar-02 8:09 
GeneralRe: DataGrid Event Pin
James T. Johnson22-Mar-02 14:37
James T. Johnson22-Mar-02 14:37 
GeneralRe: DataGrid Event Pin
Mazdak22-Mar-02 18:36
Mazdak22-Mar-02 18:36 
GeneralRe: DataGrid Event Pin
James T. Johnson22-Mar-02 21:20
James T. Johnson22-Mar-02 21:20 
Usually you set it in the controls constructor so

public class myDataGrid : DataGrid {
  public myDataGrid() {
    SetStyle( ControlStyles.StandardClick, true );
  }
}


Now the Double click events will fire according to the documentation.

I can't tell from the documentation if the DoubleClick event will fire for everything now or if it was supposed to indicate the standard event will fire.

In anycase you should be able to hook into the DoubleClick event yourself and do some calculating to determine which cell is being clicked on.


James

Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978

GeneralRe: DataGrid Event Pin
Mazdak23-Mar-02 3:17
Mazdak23-Mar-02 3:17 
GeneralRe: DataGrid Event Pin
James T. Johnson23-Mar-02 14:34
James T. Johnson23-Mar-02 14:34 
GeneralValue null was found where an instance of an object was required Pin
Bob Plymale22-Mar-02 4:04
Bob Plymale22-Mar-02 4:04 
QuestionClearing the console? Pin
Chris Masiero21-Mar-02 17:38
Chris Masiero21-Mar-02 17:38 
AnswerRe: Clearing the console? Pin
David Wengier21-Mar-02 17:46
David Wengier21-Mar-02 17:46 
GeneralRe: Clearing the console? Pin
Chris Masiero21-Mar-02 17:45
Chris Masiero21-Mar-02 17:45 
QuestionCreate guid in C#? Pin
21-Mar-02 11:54
suss21-Mar-02 11:54 
AnswerRe: Create guid in C#? Pin
Andres Manggini21-Mar-02 13:15
Andres Manggini21-Mar-02 13:15 
AnswerRe: Create guid in C#? Pin
James T. Johnson21-Mar-02 17:42
James T. Johnson21-Mar-02 17:42 
GeneralRe: Create guid in C#? Pin
Nish Nishant23-Mar-02 3:22
sitebuilderNish Nishant23-Mar-02 3:22 
QuestionDataList Multiple Selection? Pin
21-Mar-02 11:52
suss21-Mar-02 11:52 
GeneralListBox Multiple Selection Pin
21-Mar-02 10:53
suss21-Mar-02 10:53 
GeneralRe: ListBox Multiple Selection Pin
Andres Manggini21-Mar-02 11:24
Andres Manggini21-Mar-02 11:24 
GeneralRe: ListBox Multiple Selection Pin
21-Mar-02 11:59
suss21-Mar-02 11:59 
GeneralRe: ListBox Multiple Selection Pin
James T. Johnson21-Mar-02 17:46
James T. Johnson21-Mar-02 17:46 
GeneralRe: Thanks All, I got it work! Pin
22-Mar-02 2:54
suss22-Mar-02 2:54 
General.NET Benchmark Challenge Pin
Chris Maunder20-Mar-02 14:44
cofounderChris Maunder20-Mar-02 14:44 

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.