1. Mark sure you have sharepoint 2010 and visual studio 2010. Here, i installed sharepoint 2010 and vs2010 RC on my windows7 x64.
2. Create Products list in SP. the list contain 3 columns (Item, Nation, Price)
Item Nation Price
IPhone US 100
IPad US 800
E71 China 500
Moto China 600
3. Create an empty sharepoint solution then add a visual webpart feature in it.
4. See the code
ascx:
ascx.cs: