Click here to Skip to main content
15,916,019 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Converting from Base Class to Child Class Pin
Colin Angus Mackay21-Feb-07 23:51
Colin Angus Mackay21-Feb-07 23:51 
Questionif there any disadvantageof using dot net 2.0 and 1.1on same server Pin
JayPrakash Kulkarni21-Feb-07 19:56
JayPrakash Kulkarni21-Feb-07 19:56 
AnswerRe: if there any disadvantageof using dot net 2.0 and 1.1on same server Pin
Pete O'Hanlon21-Feb-07 23:02
mvePete O'Hanlon21-Feb-07 23:02 
Questionrun .net project on os without .net framework Pin
shwetas20-Feb-07 23:42
shwetas20-Feb-07 23:42 
AnswerRe: run .net project on os without .net framework Pin
__DanC__21-Feb-07 0:49
__DanC__21-Feb-07 0:49 
AnswerRe: run .net project on os without .net framework Pin
Jakub Mller21-Feb-07 1:44
Jakub Mller21-Feb-07 1:44 
AnswerRe: run .net project on os without .net framework Pin
kubben21-Feb-07 3:52
kubben21-Feb-07 3:52 
AnswerRe: run .net project on os without .net framework Pin
led mike21-Feb-07 10:15
led mike21-Feb-07 10:15 
AnswerRe: run .net project on os without .net framework Pin
Christian Graus21-Feb-07 10:23
protectorChristian Graus21-Feb-07 10:23 
GeneralRe: run .net project on os without .net framework Pin
Brady Kelly21-Feb-07 19:59
Brady Kelly21-Feb-07 19:59 
AnswerRe: run .net project on os without .net framework Pin
Vasudevan Deepak Kumar22-Feb-07 17:46
Vasudevan Deepak Kumar22-Feb-07 17:46 
QuestionText file creation Pin
Harish H M20-Feb-07 22:21
Harish H M20-Feb-07 22:21 
AnswerRe: Text file creation Pin
Krish - KP21-Feb-07 3:49
Krish - KP21-Feb-07 3:49 
QuestionLoading an assembly at runtime Pin
kristmun20-Feb-07 20:36
kristmun20-Feb-07 20:36 
AnswerRe: Loading an assembly at runtime Pin
__DanC__20-Feb-07 21:43
__DanC__20-Feb-07 21:43 
GeneralRe: Loading an assembly at runtime Pin
kristmun21-Feb-07 1:33
kristmun21-Feb-07 1:33 
QuestionRemoting and encrypting class data Pin
CPP_Student20-Feb-07 11:07
CPP_Student20-Feb-07 11:07 
QuestionDatagrid MouseUp Pin
ricecake20-Feb-07 8:51
ricecake20-Feb-07 8:51 
I am using Managed C++ (not C++/CLI) with VS .NET 2003 and .NET framework 1.1.

I have a DataGrid on one of my forms, and I override the MouseUp event so that when the user clicks on a cell, it highlights the entire row:
System::Void datagrid_MouseUp(System::Object* sender, System::Windows::Forms::MouseEventArgs* e)
{
    using System::Drawing::Point;
    using System::Windows::Forms::DataGrid;
    using System::Windows::Forms::DataGridCell;

    Point pt = Point(e->X, e->Y);
    DataGrid* datagrid = __try_cast<DataGrid*>(sender);
    DataGrid::HitTestInfo* hti = datagrid->HitTest(pt);
    if (hti->Type == DataGrid::HitTestType::Cell) {
        datagrid->CurrentCell = DataGridCell(hti->Row, hti->Column);
        datagrid->Select(hti->Row);
    }
    else {
        // What goes here?
    }
}
However, now my DataGrid will not sort when clicking on one of the header columns. My guess is that since a column header is not a cell, then this event handler says to do nothing; therefore, I need to add code in the else block to tell it to sort if it is a column header. How do I do this? I would rather not have to derive my own class from DataGrid if possible.

--
Marcus Kwok

QuestionCF List Control - Resize specific item font size Pin
tom_barber20-Feb-07 5:03
tom_barber20-Feb-07 5:03 
AnswerRe: CF List Control - Resize specific item font size Pin
tom_barber20-Feb-07 5:12
tom_barber20-Feb-07 5:12 
AnswerRe: CF List Control - Resize specific item font size Pin
Dave Kreskowiak20-Feb-07 7:23
mveDave Kreskowiak20-Feb-07 7:23 
QuestionUnit Testing Pin
Colin Angus Mackay20-Feb-07 0:23
Colin Angus Mackay20-Feb-07 0:23 
AnswerRe: Unit Testing Pin
S. Senthil Kumar25-Feb-07 11:17
S. Senthil Kumar25-Feb-07 11:17 
GeneralRe: Unit Testing Pin
Colin Angus Mackay2-Mar-07 3:33
Colin Angus Mackay2-Mar-07 3:33 
QuestionHelp needed in setting report programatically.. Pin
bugsome20-Feb-07 0:11
bugsome20-Feb-07 0:11 

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.