We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Check/Uncheck a Check Box in Aspose.grid control programmatically

Hi, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I need help for Aspose Grid control. What I want to do is to Check/Uncheck a Check Box control programmatically in a grid after binding grid to a dataset table.

I also want to know how can I remove one or more cells from grid after binding it?

Please go through the attached file.

Please help ASAP




Hi Rajesh,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.

To programmatically set the status of your Checkbox in Aspose.Grid you can get the checkbox control from the worksheet and set its status.

Dim checkBox As Aspose.Grid.Desktop.CheckBox = CType(Worksheets(0).Controls(Row, Column), Aspose.Grid.Desktop.CheckBox)

checkBox.Checked = True

For Deleteing a Control from a cell you may try Worksheets(0).Controls.Remove(Row, Column) in your code.

Thank You & Best Regards,