Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic 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 April 26th, 2005, 03:49 PM
Authorized User
 
Join Date: Nov 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Checkboxes to determine DataGrid Columns

I am trying to figure out how to control (Dyamnically) what columns are shown in a Datagrid by selecting certain checkboxes. I don't know if I should make a dynamic sql statement and if so how to make the sql adapter dynamic or pass it parameters. I am new to asp and I need some help. Thanks in advance. Any code samples would be appreciated.
 
Old April 27th, 2005, 06:34 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 
Quote:
quote:Any code samples would be appreciated.


Do you want someone to build a simple SQL string when you have an Autogenerate fields property for the datagrid.



 
Old April 27th, 2005, 08:52 AM
Authorized User
 
Join Date: Nov 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I don't really know. Part of my problem is that I don't know what would be the best solution to the problem. Like I said before, I am new to asp.net and so I am learning. What is the best solution, and how do I do it?

Thanks

 
Old April 27th, 2005, 05:48 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This is the classic ASP area of the forum, for .net solutions you should post in the .net area. Wow, so many people do this...

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Select all checkboxes in a datagrid kawal.singh C# 2 May 7th, 2007 02:09 PM
C# Datagrid Help foreach statement checkboxes mbge9pjb C# 4 December 20th, 2005 09:43 AM
Using Checkboxes in datagrid ractim General .NET 2 September 21st, 2004 05:14 AM





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