Board index » Web Programming » Create Datagrid Controls as runtime

Create Datagrid Controls as runtime

Web Programming298
I'm driving myself nuts trying to find a good tutorial in vb.net to

create a datagrid at runtime. I've got how to do it at design time,

but I'd like to build a class that handles all of the coding so I

don't have to do it every time. Does anybody know of a good tutorial

that covers adding columns at runtime, including a column that

displays a label from a lookup table in the bound dataset and a

dropdown list for that columns edititemcommand.


-
 

Re:Create Datagrid Controls as runtime

Basically, you need to create and define new columns, add them to the columns

collection, create new rows and add them to the rows collection.



Anyway, here's a link I found:



www.codeproject.com/aspnet/ASPNET_DataGrid_creation.asp">www.codeproject.com/aspnet/ASPNET_DataGrid_creation.asp



"Big Dave" wrote:



Quote
I'm driving myself nuts trying to find a good tutorial in vb.net to

create a datagrid at runtime. I've got how to do it at design time,

but I'd like to build a class that handles all of the coding so I

don't have to do it every time. Does anybody know of a good tutorial

that covers adding columns at runtime, including a column that

displays a label from a lookup table in the bound dataset and a

dropdown list for that columns edititemcommand.



-