Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 11th, 2008, 04:17 AM
Registered User
Join Date: Mar 2008
Location: jaipur, rajasthan, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to epkgupta
Default CheckListBox

Hello Friends,

                 i am using checklistbox to select month in a window application.when retrieve the data particular information which are saved by checklistbox and set checked them . but i want to them the particular item of checklistbox which have value bacame disable how it possible . my coding is-
 public void monthDetail()
            if (txtRagis.Text != "")
                sql = "SELECT * from FeeMonthDetail WHERE RagisterNo='" + txtRagis.Text + "'";
                DataSet ds = new DataSet();
                cmd.CommandText = sql;
                cmd.Connection = con;
                adpt.SelectCommand = cmd;
                if (ds.Tables[0].Rows.Count > 0)
                    DataTable dt = (DataTable)ds.Tables[0];
                    for (int a = 1; a < dt.Columns.Count; a++)
                        if (dt.Rows[0][a].ToString() == "True")

                            checkedListBox1.SetItemChecked(a-1, true);


Reply With Quote

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
Page_Load on recreate CheckListBox pjirelan ASP.NET 1.0 and 1.1 Basics 4 February 24th, 2004 05:14 PM

All times are GMT -4. The time now is 02:51 AM.

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