Click here to Skip to main content
15,900,378 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Unable to browse Website from Winxp .-using windows authentication. Pin
Bernhard Hiller15-Mar-12 22:09
Bernhard Hiller15-Mar-12 22:09 
GeneralRe: Unable to browse Website from Winxp .-using windows authentication. Pin
GenJerDan16-Mar-12 3:30
GenJerDan16-Mar-12 3:30 
QuestionCalenderExtender's Date Pin
Seema Bawa15-Mar-12 6:43
Seema Bawa15-Mar-12 6:43 
Questiondatagridview Pin
altafmohd15-Mar-12 6:39
altafmohd15-Mar-12 6:39 
AnswerRe: datagridview Pin
R. Giskard Reventlov15-Mar-12 7:01
R. Giskard Reventlov15-Mar-12 7:01 
GeneralRe: datagridview Pin
altafmohd15-Mar-12 7:57
altafmohd15-Mar-12 7:57 
AnswerRe: datagridview Pin
Joshua Omundson15-Mar-12 7:21
Joshua Omundson15-Mar-12 7:21 
GeneralRe: datagridview Pin
altafmohd16-Mar-12 7:18
altafmohd16-Mar-12 7:18 
sir this is my code what i am using in my project ....
there is a checkbox outside the gridview for checking the inside col cell of gridview and if i chk inside gridview col cell then it checks outside the gridview as it happens in mysql query browser .....thnx in advance



C#
<pre lang="c#"> private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                q = (string)dataGridView1.CurrentRow.Cells[0].Value;
                if (q != null)
                {
                    cntextbox.Text = (string)dataGridView1.CurrentRow.Cells[0].Value;
                    dttextbox.Text = (string)dataGridView1.CurrentRow.Cells[1].Value;


                    if (Convert.ToBoolean(dataGridView1.CurrentRow.Cells[4].Value) == true)
                        checkBox1.Checked = true;
                    else
                        checkBox1.Checked = false;

                    if (Convert.ToBoolean(dataGridView1.CurrentRow.Cells[2].Value) == true)
                        checkBox2.Checked = true;
                    else
                        checkBox2.Checked = false;
                    if (Convert.ToBoolean(dataGridView1.CurrentRow.Cells[3].Value) == true)
                    {
                        foreach (DataGridViewRow dr in dataGridView1.Rows)
                        {
                            dr.Cells[3].Value = false;
                        }
                        checkBox3.Checked = true;
                    }
                    else
                        checkBox3.Checked = false;




                }






            }

            catch (Exception)
            {

            }


        }




        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
                dataGridView1.CurrentRow.Cells[4].Value = true;
            else
                dataGridView1.CurrentRow.Cells[4].Value = false;
        }

        private void checkBox2_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox2.Checked)
                dataGridView1.CurrentRow.Cells[2].Value = true;
            else
                dataGridView1.CurrentRow.Cells[2].Value = false;
        }

        private void dttextbox_TextChanged(object sender, EventArgs e)
        {
            dataGridView1.CurrentRow.Cells[1].Value = dttextbox.Text;
        }

        private void cntextbox_TextChanged(object sender, EventArgs e)
        {
            dataGridView1.CurrentRow.Cells[0].Value = cntextbox.Text;
        }

        private void checkBox3_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox3.Checked)
            {
                foreach (DataGridViewRow dr in dataGridView1.Rows)
                {
                    dr.Cells[3].Value = false;
                }

                dataGridView1.CurrentRow.Cells[3].Value = true;
            }
            else
                dataGridView1.CurrentRow.Cells[3].Value = false;
        }





here checkbox3 is used for auto inc that is causing the problem

modified 16-Mar-12 14:08pm.

GeneralHow to develope voice chat application for intranet in asp.net? Pin
dusarahardik14-Mar-12 19:29
dusarahardik14-Mar-12 19:29 
GeneralRe: How to develope voice chat application for intranet in asp.net? Pin
ZurdoDev16-Mar-12 8:14
professionalZurdoDev16-Mar-12 8:14 
GeneralRe: How to develope voice chat application for intranet in asp.net? Pin
satalaj21-Mar-12 6:46
satalaj21-Mar-12 6:46 
QuestionJQuery Dialog not opening on single click Pin
Member 407235514-Mar-12 7:04
Member 407235514-Mar-12 7:04 
AnswerRe: JQuery Dialog not opening on single click Pin
Lakxman16-Mar-12 2:10
Lakxman16-Mar-12 2:10 
AnswerRe: JQuery Dialog not opening on single click Pin
ZurdoDev16-Mar-12 8:19
professionalZurdoDev16-Mar-12 8:19 
Questionchecking the syntax of SQL Pin
byka13-Mar-12 3:35
byka13-Mar-12 3:35 
AnswerRe: checking the syntax of SQL Pin
Shameel13-Mar-12 6:00
professionalShameel13-Mar-12 6:00 
GeneralRe: checking the syntax of SQL Pin
MaulikDusara14-Mar-12 19:12
MaulikDusara14-Mar-12 19:12 
QuestionMeasuring Download Bandwidth Pin
Majid Shahabfar12-Mar-12 21:49
Majid Shahabfar12-Mar-12 21:49 
AnswerRe: Measuring Download Bandwidth Pin
Bernhard Hiller13-Mar-12 1:51
Bernhard Hiller13-Mar-12 1:51 
GeneralRe: Measuring Download Bandwidth Pin
Majid Shahabfar13-Mar-12 5:06
Majid Shahabfar13-Mar-12 5:06 
AnswerRe: Measuring Download Bandwidth Pin
satalaj21-Mar-12 6:50
satalaj21-Mar-12 6:50 
GeneralRe: Measuring Download Bandwidth Pin
Majid Shahabfar21-Mar-12 9:08
Majid Shahabfar21-Mar-12 9:08 
Questionbest way of showing single record Pin
Hanzaplast12-Mar-12 5:14
Hanzaplast12-Mar-12 5:14 
AnswerRe: best way of showing single record Pin
R. Giskard Reventlov12-Mar-12 5:51
R. Giskard Reventlov12-Mar-12 5:51 
AnswerRe: best way of showing single record Pin
ZurdoDev16-Mar-12 8:20
professionalZurdoDev16-Mar-12 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.