Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 18th, 2005, 12:44 AM
jap jap is offline
Registered User
 
Join Date: May 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamically Add Columns

Hi,

    I want to know that how can i dynamically add and delete columns and rows in asp.net with vb.net code behind.

    Regards,
    JAP
 
Old May 18th, 2005, 08:16 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You're going to have to be more specific.

Columns and Rows in what? A display control? An ADO.NET object? A database table?

-Peter
 
Old May 23rd, 2005, 03:28 AM
jap jap is offline
Registered User
 
Join Date: May 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Peter,

     Ya i want to add or delete columns and rows dynamically in data-grid control in asp.net with vb.net code-behind at run-time.

  Regards,
  JAP
 
Old May 23rd, 2005, 07:27 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

This request doesn't make sense to some extent. You can add and remove columns in a datagrid, but it's meaningless without some data behind it. If you want to add/delete rows in a datagrid, you'll have to add and remove rows in some datasource that the datagrid is bound to.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically creating columns in temp table girish SQL Server 2000 8 November 14th, 2016 01:35 AM
Add Missing columns Sona_2008 XSLT 5 May 27th, 2008 02:22 PM
Creating Columns Dynamically?? cbeasle1 Crystal Reports 2 June 10th, 2005 09:15 AM
Dynamically Hiding Columns r_ganesh76 Crystal Reports 1 September 23rd, 2004 11:18 PM
How to add 2 columns in DataGrid1.DataKeyField drasko C# 0 December 6th, 2003 09:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.