Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 November 29th, 2006, 05:42 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Columns in Datagrid

Hi ALl

I have one datagrid in asp.net.I generate columns in grid.

But i know how to add column in c# with asp.net like

 DG.Columns.Add(SetStyle(new BoundColumn(),"Order","OrderID",""));
      DG.Columns.Add(SetStyle(new BoundColumn(),"Order Date","OrderDate","{0:D}"));
      DG.Columns.Add(SetStyle(new BoundColumn(),"Required Date","RequiredDate","{0:D}"));

but when i write this code in vb.net with asp.net ,it gives an error.

How can i write in asp.net?

if u have and,pls give me guidenece.

Thanks
monika

 
Old December 1st, 2006, 08:25 AM
Authorized User
 
Join Date: Sep 2006
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Let us know atleast what is the error is

 
Old December 3rd, 2006, 11:26 AM
Authorized User
 
Join Date: Aug 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

refer to this link

http://msdn2.microsoft.com/en-us/lib...undcolumn.aspx






Similar Threads
Thread Thread Starter Forum Replies Last Post
creating columns in datagrid pady123 ASP.NET 1.x and 2.0 Application Design 0 September 8th, 2007 01:08 AM
Displaying Columns in a DataGrid jmss66 VB How-To 0 July 26th, 2007 03:13 PM
Sorting of columns in Datagrid lily611 General .NET 2 July 21st, 2005 07:50 AM
Template Columns in a Datagrid Greg Griffiths ASP.NET 1.0 and 1.1 Basics 1 October 28th, 2004 08:02 AM
sub columns in a datagrid pankaj_daga ASP.NET 1.0 and 1.1 Basics 1 October 22nd, 2003 09:20 AM





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