Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

DataGrid dynamic columns

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon - 16 Feb 2006 14:31 GMT
Hello all,

If I have a datagird with a number of columns, say 3, and then I add another
one dynamically, obviously it will have no data, what's the best way to get
the data, do I have to rebind?

Thanks all,

Jon
Bob Barrows [MVP] - 16 Feb 2006 16:37 GMT
> Hello all,
>
> If I have a datagird with a number of columns, say 3, and then I add
> another one dynamically, obviously it will have no data, what's the
> best way to get the data, do I have to rebind?

Yes.

Signature

Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Bob Barrows [MVP] - 16 Feb 2006 20:10 GMT
> Hello all,
>
> If I have a datagird with a number of columns, say 3, and then I add
> another one dynamically, obviously it will have no data, what's the
> best way to get the data, do I have to rebind?

Of course, you could loop through the roes and populate the cells yourself
...

Signature

Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.