Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,479 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,679 people online right now. Registration is fast and FREE... Join Now!




check box in datagrid

 
Reply to this topicStart new topic

check box in datagrid

monikajohri20
2 Jul, 2008 - 10:41 PM
Post #1

New D.I.C Head
*

Joined: 1 Jul, 2008
Posts: 1

my this code is not working pls help me
CODE

try
                {
                    lblmsg.Visible=true;
                    //CheckBox ch=new CheckBox ();
                    foreach(DataGridItem dataGridItem in dgshowdetails.Items)
                    {
                        CheckBox chk = (CheckBox)dataGridItem.FindControl("chk");
                        if (chk.Checked)
                        {
                            bool A=chk.Checked;
                            lblmsg.Text=lblmsg.Text+A.ToString();
                        }

                    }
        
                }
                catch(Exception er)
                {
                    lblmsg.Text=er.Message;
                }

User is offlineProfile CardPM
+Quote Post

Jayman
RE: Check Box In Datagrid
3 Jul, 2008 - 01:23 PM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,945



Thanked: 42 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
Please describe in what way your code isn't working. Provide any error messages or unexpected output you may be receiving.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 06:32PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month