Filling a datagrid
-
Hi, I am trying to fill a datagrid in ASP.NET, but i cant. What i need is to put some values on the datagrid, but the values are not coming from a database, i just need to set a fixed values. For example, i get the names of the columns(Name, Style) and i get the information of both columns:(John, Xtreme),(Paul, Overload). How do i set this information on a datagrid. Thank u very much for ur help
-
Hi, I am trying to fill a datagrid in ASP.NET, but i cant. What i need is to put some values on the datagrid, but the values are not coming from a database, i just need to set a fixed values. For example, i get the names of the columns(Name, Style) and i get the information of both columns:(John, Xtreme),(Paul, Overload). How do i set this information on a datagrid. Thank u very much for ur help
You can create a datatable in memory, there are plenty of examples on this. You can also databind to an array if you want to. Christian Graus - Microsoft MVP - C++