Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threading concepts.. Pin
Laddie19-Mar-08 0:51
Laddie19-Mar-08 0:51 
GeneralRe: Threading concepts.. Pin
ptr2void19-Mar-08 1:10
ptr2void19-Mar-08 1:10 
GeneralRe: Threading concepts.. Pin
Bekjong19-Mar-08 1:23
Bekjong19-Mar-08 1:23 
GeneralBinary Object Serialization Hiccup! Pin
Jammer19-Mar-08 0:39
Jammer19-Mar-08 0:39 
GeneralRe: Binary Object Serialization Hiccup! Pin
Ennis Ray Lynch, Jr.19-Mar-08 3:48
Ennis Ray Lynch, Jr.19-Mar-08 3:48 
GeneralRe: Binary Object Serialization Hiccup! Pin
Jammer19-Mar-08 4:02
Jammer19-Mar-08 4:02 
GeneralRe: Binary Object Serialization Hiccup! Pin
Jammer19-Mar-08 9:43
Jammer19-Mar-08 9:43 
Generalgeneric collection Pin
arkiboys19-Mar-08 0:06
arkiboys19-Mar-08 0:06 
Hi,
I have to UPDATE a generic collection (ysIsins) which is already populated. Lets say there are hundreds of records.
One of the fields in the collection is called ISIN i.e. ysIsins.ISIN

I have to look for the records inside ysIsins which have the same values in the ISIN field.
For these ones, I have to refer to a datatable to get the position field for those isins and update the collection accordingly...

datatable has only the Isin values which are repeated
Notice there are repeated ISIN fields

data inside dtRiskPositionsRepeatedIsins is as follows:

ISIN Position

XS0211873053 80
XS0211873053 2500
XS0222981358 1000
XS0222981358 1000
XS0279930449 3000
XS0279930449 -3000
XS0279930449 -1250
XS0282585859 5000
XS0282585859 1000

This is what I am doing but it does not seem to be correct.
Any thoughts please?

foreach (DataGridViewColumn col in dgvProfitAndLoss.Columns)
{
string strColumn = col.Name.ToString();

if (strColumn.ToLower() != "country")
{
int intColumn = int.Parse(col.Name.ToString());

for (int r = 0; r < YSisins.Count; r++)
{
if (YSisins[r].SpreadIncrement == intColumn)
{
foreach (DataRow dr in dtRiskPositionsRepeatedIsins.Rows)
{
if (YSisins[r].ISIN == dr["Isin"].ToString())
{
YSisins[r].Position = dr["Position"].ToString();
}
}
}
}
}
}
GeneralC#.Net Pin
Aditya Baraya19-Mar-08 0:00
Aditya Baraya19-Mar-08 0:00 
GeneralRe: C#.Net Pin
Christian Graus19-Mar-08 0:07
protectorChristian Graus19-Mar-08 0:07 
GeneralRe: C#.Net Pin
Aditya Baraya19-Mar-08 0:47
Aditya Baraya19-Mar-08 0:47 
GeneralRe: C#.Net Pin
Christian Graus19-Mar-08 0:55
protectorChristian Graus19-Mar-08 0:55 
GeneralFind Functioality Pin
Aditya Baraya19-Mar-08 1:26
Aditya Baraya19-Mar-08 1:26 
GeneralRe: Find Functioality Pin
Christian Graus19-Mar-08 10:22
protectorChristian Graus19-Mar-08 10:22 
GeneralRe: Find Functioality Pin
Aditya Baraya19-Mar-08 17:46
Aditya Baraya19-Mar-08 17:46 
GeneralRe: C#.Net Pin
Colin Angus Mackay19-Mar-08 2:38
Colin Angus Mackay19-Mar-08 2:38 
GeneralRe: C#.Net Pin
Not Active19-Mar-08 3:48
mentorNot Active19-Mar-08 3:48 
GeneralRe: C#.Net Pin
Colin Angus Mackay23-Mar-08 0:17
Colin Angus Mackay23-Mar-08 0:17 
QuestionConfiguration Files Location Problem Pin
matthias s.18-Mar-08 23:59
matthias s.18-Mar-08 23:59 
GeneralGlobal error handler Pin
N a v a n e e t h18-Mar-08 23:53
N a v a n e e t h18-Mar-08 23:53 
GeneralRe: Global error handler Pin
Giorgi Dalakishvili19-Mar-08 0:00
mentorGiorgi Dalakishvili19-Mar-08 0:00 
GeneralRe: Global error handler Pin
N a v a n e e t h19-Mar-08 0:05
N a v a n e e t h19-Mar-08 0:05 
GeneralRe: Global error handler Pin
Giorgi Dalakishvili19-Mar-08 0:11
mentorGiorgi Dalakishvili19-Mar-08 0:11 
GeneralRe: Global error handler Pin
MarkB77719-Mar-08 0:04
MarkB77719-Mar-08 0:04 
GeneralRe: Global error handler Pin
N a v a n e e t h19-Mar-08 0:10
N a v a n e e t h19-Mar-08 0:10 

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.