I Have a Challenge like this,
Dictionary<string,Dictionary<string,int>> dic=new Dictionary<string,Dictionary<string,int>>();
i want them into a table.
Main Problem is, each Key of dic
is having again a Dictionary with many values.
i want to show them in table.
How can i d开发者_如何学JAVAo this? please resolve my problem with answer or alternative.
Table will be like this..! Desired Output will be Like this.
But Please Remove Top Header,ColA1,ColA2,ColB1,ColB2...so Table contains Header1,Col1,Col2.
colA1,colB1 were mergend in Col1
And *ColA2,ColB*2 were merged in Col2
.
And i am not using LINQ.
Thanks in Advance.
It looks like one to many relation. So u should have table containing keys from ur dictionary with some primekey, and second table with key, value columns + primekey of corresponding string in first table.
精彩评论