I have some code that reads some datarows into an arraylist (called al), returns this to the calling function, and uses this as the DataSource property of a datagrid. I need to read what's in "al", but it won't let me specify fields. However, if I simply want to see what's in the arraylist as a whole, I can do this in the immediate window by typing ?al[0], or any other index within the range of the arraylist, and I get something like the following:
Since I can see the data I'm looking for, I can't figure out why I can't identify a specific field. In fact, when I try ?alStatus[0]["G_ID"], or alStatus[0][0], I get nothing. I tried alStatus[0].GetType().GetF ields(), but it returns {Dimensions:[0]}, so it's plain that I am just too new at .NET to get this to work as expected. I inherited this application, and welcome the challenge, but I'm getting frustrated that it doesn't work as I thought it would. Any advice is so appreciated.
Thank you.
J
{PVI.G_App.G_Sy stem.Applicatio n}
ApplicationID: 1241
ApplicationStat us: InProcess
CreationDate: {3/15/2007 3:07:54 PM}
G_ID: 5
G_Name: "BYRNEJAG"
LastUpdateDate: {3/15/2007 3:07:54 PM}
LastUpdateUser: {075cab45-e1b3-31a3-aab8-d617a25dbah5}
SubmissionDate: {1/1/0001 12:00:00 AM}
Title: "CDI Enhanced Training"
UserID: {075cab45-e1b3-31a3-aab8-d617a25dbah5}
ApplicationID: 1241
ApplicationStat us: InProcess
CreationDate: {3/15/2007 3:07:54 PM}
G_ID: 5
G_Name: "BYRNEJAG"
LastUpdateDate: {3/15/2007 3:07:54 PM}
LastUpdateUser: {075cab45-e1b3-31a3-aab8-d617a25dbah5}
SubmissionDate: {1/1/0001 12:00:00 AM}
Title: "CDI Enhanced Training"
UserID: {075cab45-e1b3-31a3-aab8-d617a25dbah5}
Since I can see the data I'm looking for, I can't figure out why I can't identify a specific field. In fact, when I try ?alStatus[0]["G_ID"], or alStatus[0][0], I get nothing. I tried alStatus[0].GetType().GetF ields(), but it returns {Dimensions:[0]}, so it's plain that I am just too new at .NET to get this to work as expected. I inherited this application, and welcome the challenge, but I'm getting frustrated that it doesn't work as I thought it would. Any advice is so appreciated.
Thank you.
J
Comment