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

.NET (Core and Framework)

 
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 
QuestionAutoescape text Pin
Ray Cassick19-Feb-07 19:44
Ray Cassick19-Feb-07 19:44 
AnswerRe: Autoescape text Pin
Heath Stewart20-Feb-07 4:51
protectorHeath Stewart20-Feb-07 4:51 
AnswerRe: Autoescape text Pin
Pete O'Hanlon20-Feb-07 5:01
mvePete O'Hanlon20-Feb-07 5:01 
QuestionProblem with handling MDI child closing Pin
CPP_Student19-Feb-07 17:24
CPP_Student19-Feb-07 17:24 
AnswerRe: Problem with handling MDI child closing Pin
tgrt20-Feb-07 3:12
tgrt20-Feb-07 3:12 
GeneralRe: Problem with handling MDI child closing Pin
CPP_Student20-Feb-07 9:24
CPP_Student20-Feb-07 9:24 
QuestionUsing Reflection to get the name of a function parameter. Pin
howardjr19-Feb-07 15:31
howardjr19-Feb-07 15:31 
AnswerRe: Using Reflection to get the name of a function parameter. Pin
Heath Stewart20-Feb-07 4:58
protectorHeath Stewart20-Feb-07 4:58 
GeneralRe: Using Reflection to get the name of a function parameter. Pin
howardjr21-Feb-07 9:57
howardjr21-Feb-07 9:57 
Questionupdating to framework 3.0 Pin
Darren Sim19-Feb-07 0:38
Darren Sim19-Feb-07 0:38 

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.