Adding Subcolumn to datatable

  • 12 years ago

    Hi,can anyone help me to add 3 subcolumn to a column in datatable, that i need to bind with gridview

    I tried addding subcolumn using for loop but it doesnt work



  • 12 years ago

    I think you are relatively confused over what a datatable is. You can add a ForeignKeyConstraint, which will link a primary key column in one table to a foreign key column in another table; but you cannot add subcolumns.

  • 12 years ago

    Thx for ur reply

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debugging is anticipated with distaste, performed with reluctance, and bragged about forever.” - Dan Kaminsky