Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1540
Is my checkbox style cell checked?
posted

Hello.

I have a WinGrid that has a cell with checkbox style.

I want to determinate if my checkox is checked or not.. how can I do that? I've only have access to the cell.

Thank you.

Best regards.

Maria

Parents
No Data
Reply
  • 71886
    Offline posted

    Hello Maria,

    You could check this with the following code which works fine for me:

    Console.WriteLine("Is it checked: ");
                if ((bool)ultraGrid1.Rows[1].Cells[0].Value)
                 {
                       Console.WriteLine("YES");
                 } else
                    Console.WriteLine("No");
    

     

    Please try it out in your project and let me know if it satisfies your requirements.

Children