Skip to Content
0
Former Member
Sep 19, 2008 at 06:45 AM

Change checkbox status

20 Views

Hi All,

I'm using a check box to show to user a status(true/false).

here I get a value from User table(isOverWrite) and if it is one I want to make check box checked = true.

But according to following code it doesn't check even that code line is executed successfully.Is there any mistake,please tell me

Thankyou

Buddhika

if (isOverWrite != -1)
    {
         SAPbouiCOM.CheckBox chbOverWrite = null;
           chbOverWrite = (SAPbouiCOM.CheckBox)frm.Items.Item("chbOVwrite").Specific;
          if (isOverWrite == 1)
              {                                             chbOverWrite.Checked=true                                                                                
}
               else
               {
                     chbOverWrite.Checked = false;
                 }
                chbOverWrite.DataBind.SetBound      (true, "", "over_write"); 
                            }
frm.Update();