Click here to Skip to main content
14,769,451 members
Home » Discussions » C#
   

C#

 
GeneralRe: Arrow in rowheader Pin
anton-0910-Jul-08 23:42
Memberanton-0910-Jul-08 23:42 
AnswerRe: Arrow in rowheader Pin
anton-0911-Jul-08 19:00
Memberanton-0911-Jul-08 19:00 
QuestionTab Control Pin
half-life9-Jul-08 5:44
Memberhalf-life9-Jul-08 5:44 
AnswerRe: Tab Control Pin
User 66589-Jul-08 5:49
MemberUser 66589-Jul-08 5:49 
QuestionHow to create ".eml" file using desktop application in .net to use it to send E-mail? Pin
shababnet9-Jul-08 5:29
Membershababnet9-Jul-08 5:29 
AnswerRe: How to create ".eml" file using desktop application in .net to use it to send E-mail? Pin
Christian Graus9-Jul-08 5:36
protectorChristian Graus9-Jul-08 5:36 
GeneralRe: How to create ".eml" file using desktop application in .net to use it to send E-mail? Pin
User 66589-Jul-08 5:39
MemberUser 66589-Jul-08 5:39 
Questionhashtable within a hashtable Pin
benjamin yap9-Jul-08 5:02
Memberbenjamin yap9-Jul-08 5:02 
Hi, i got a hashtable within a hashtable. How do i retrive the property from the inner hashtable

I got this orderTable which store a Order object.

Inside my Order object, i have a Hashtable itemList as a attributes. The itemList will store a product object which have the property ModelNumber

foreach (Order order in orderTable.Values)
{
    if (order.ItemList.ContainsKey(Convert.ToString(p.ModelNumber)))
    {
        uint modelNum = ((Product)order.ItemList[p.ModelNumber]).ModelNumber;
        string cellValue = Convert.ToString(p.ModelNumber);
        if (cellValue == Convert.ToString(modelNum))
        {
            dataGridProduct.Rows[currentRow].Cells["colSelect"].Value = true;
        }
    }
}


this is what i do, but i get

Object reference not set to an instance of an object.

on this line

uint modelNum = ((Product)order.ItemList[p.ModelNumber]).ModelNumber;

AnswerRe: hashtable within a hashtable Pin
Christian Graus9-Jul-08 5:07
protectorChristian Graus9-Jul-08 5:07 
GeneralRe: hashtable within a hashtable Pin
benjamin yap9-Jul-08 5:11
Memberbenjamin yap9-Jul-08 5:11 
GeneralRe: hashtable within a hashtable Pin
Christian Graus9-Jul-08 5:14
protectorChristian Graus9-Jul-08 5:14 
GeneralRe: hashtable within a hashtable Pin
User 66589-Jul-08 5:13
MemberUser 66589-Jul-08 5:13 
GeneralRe: hashtable within a hashtable Pin
Christian Graus9-Jul-08 5:15
protectorChristian Graus9-Jul-08 5:15 
AnswerRe: hashtable within a hashtable Pin
User 66589-Jul-08 5:10
MemberUser 66589-Jul-08 5:10 
GeneralRe: hashtable within a hashtable Pin
benjamin yap9-Jul-08 5:31
Memberbenjamin yap9-Jul-08 5:31 
QuestionWindows Service accessing DMZ resources Pin
newc19-Jul-08 4:46
Membernewc19-Jul-08 4:46 
QuestionStop Timer Plz. Pin
Member 34356149-Jul-08 4:32
MemberMember 34356149-Jul-08 4:32 
AnswerRe: Stop Timer Plz. Pin
stancrm9-Jul-08 4:54
Memberstancrm9-Jul-08 4:54 
AnswerRe: Stop Timer Plz. Pin
Christian Graus9-Jul-08 4:56
protectorChristian Graus9-Jul-08 4:56 
AnswerRe: Stop Timer Plz. Pin
#realJSOP9-Jul-08 10:15
mva#realJSOP9-Jul-08 10:15 
Questionc# GUI for mapping two different databases Pin
sarmstrong039-Jul-08 4:05
Membersarmstrong039-Jul-08 4:05 
QuestionRedirecting to a new .aspx page Pin
WebMaster9-Jul-08 3:31
MemberWebMaster9-Jul-08 3:31 
AnswerRe: Redirecting to a new .aspx page Pin
leppie9-Jul-08 3:37
Memberleppie9-Jul-08 3:37 
AnswerRe: Redirecting to a new .aspx page Pin
ITS79-Jul-08 11:53
MemberITS79-Jul-08 11:53 
Questioniis pick up service Pin
shababnet9-Jul-08 3:26
Membershababnet9-Jul-08 3:26 

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.