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

Free Support Forum - aspose.com

Databinding a Desktop Grid in code

Are there any demos or examples for how to databind a desktop grid? I found Demos and forum examples for a Web Grid but they use the statement

sheet.datasource = dataset, for the desktop grid I get the error that datasource is a readonly property.

Is this possible?

Hi,

Thanks for your inquiry.

Yes, quite possible. Aspose.Cell.GridDesktop does support Data Binding feature similar to GridWeb.

Please see the document for your reference:
http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/implementing-griddesktops-data-binding-feature-in-worksheets.html

You may also check the Data Binding demo in the GridDesktop’s featured demos. If you have installed Aspose.Cells v4.8.0. you may do it. In your windows desktop, click Start|Programs|Aspose|Aspose.Cells|Featured Demos and then open the project there e.g “\Aspose.Cells.GridDesktop.Demos.VisualBasic\Aspose.Cells.GridDesktop.Demos.Features.VisualBasic” in your vs.net and check the code in FormDataBinding.vb file.


Thank you.