Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 15th, 2008, 03:59 PM
Authorized User
Points: 386, Level: 6
Points: 386, Level: 6 Points: 386, Level: 6 Points: 386, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2007
Location: windsor, toronto, Canada.
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display checkbox inside Table like structure in Vb

I have a field called Departments in my database. and I have 3 monitors. So when Page_Load, I need to check number of departments I have in database. And depends upon that number of departments I have, I need to calculate number of checkbox I need to display.

NumCheckBox = NumDepartments * 3

And then I need to create a table like structure with 4 fields. First column -Department Name and remaining 3 columns will be Monitor 1, Monitor 2 and Monitor 3. and display the department name and corresponding checkbox under each Monitor columns.

Each Checkbox need to be Checked and UnChecked. And I have 3 buttons on top of the screen called “Function1”, “Function2” and “Function3”. If I hit “Function1” and select the corresponding checkbox’s for each department and hit “Save” button, then it need to save inside a config file. And if I hit “Function2” and select the corresponding checkbox’s for that function and save and so on.

Once its saved, if I hit any of those Function button, then the corresponding selected checkbox for that function need to be checked.
For Example :
if I hit “Function1” button, then the corresponding selected checkbox for Function1 need to be checked.
if I hit “Function2” button, then the corresponding selected checkbox for Function2 need to be checked.
if I hit “Function3” button, then the corresponding selected checkbox for Function3 need to be checked.

Checkbox selected will be different for each Function. And the Number of Departments various. For Example : sometimes number of Departments will be 10 or 20 or 35 or 40 etc… so depends upon number of departments I have, I need to create checkbox under each Monitor field. And depends upon on number of department I have, the table structure’s size also should increase.

I can find the number of Departments from database and calculate the number of checkbox I need to display. And I have 3 Function button and Save button.

Can you please help me to find a way to create this table like structure to display the department name and the Checkbox’s under each Monitor field?

If you have any idea how to do this, please help me.

Thanks in advance.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Outline Format from Nested XML Structure tclotworthy XSLT 2 May 16th, 2007 03:43 PM
Copy whole structure of table in #temp table maulik77 SQL Server 2000 2 December 21st, 2006 02:42 AM
change table structure Duncan SQL Server 2000 1 March 3rd, 2005 04:10 AM
Printing of Table structure Vanaj SQL Server 2000 4 July 16th, 2004 01:26 AM
Table / DB Structure mtangorre SQL Server 2000 1 June 27th, 2003 01:32 AM



All times are GMT -4. The time now is 09:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.