hello all

i m new at using C1truedbgrid..... and feeling very uncomfortable in shifting frm datagridview to c1truedbgrid.... can you help me in doing so?????


my question at this time is that i m using a checkbox column in c1truedbgrid nw in order to select all checkbox i placed an unbound checkbox on the header so that on checkboxchanged evemt handler i can select all of the checkboxes....... but the problem is that how can i change the value of a repespective cell????? mean how can i change an unchecked checkbox cell to checked state.......


please any one can tell me the basic comands used with the c1truedbgrid

i have solved the problem in case if any one gets the same problem

private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            checkStateChange(checkBox1, c1TrueDBGrid1);
        }


        public void checkStateChange(CheckBox ch1,C1TrueDBGrid ctb)
        {

            try
            {
                ctb.MoveFirst();
                for (int j = 0; j < ctb.RowCount; j++)
                {
                    if (ch1.CheckState.ToString() == "Checked")
                        ctb.Columns[0].Value = true;
                    else ctb.Columns[0].Value = false;

                    ctb.MoveNext();
                }
            }
            catch (Exception ee)
            {
                catchException(ee.ToString());
            }
          
        }

How were you able to display checkbox in column header? I have a similar requirement in which a checkbox in a column header - on click of it, all the checkboxes in that column should be checked/unchecked respectively. Any help?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.