GridView - Showing Basic Data
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I have some basic data for stock items that need to be shown in a GridView. I don't know how the data will be presented yet but I think it will be an object with methods to get the data out so the data I need to bind will be several rows of several columns. If I know how many columns I need how can I best bind this data to the GridView? So I might have this:
String color = "Blue", quantity = "5", cost = "5", total = "25";
I then want to add this row to my datagrid. How do I tell the datagrid it should have 4 columns and to add the row above? Thx for looking :)