We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Formula in DataBoundGrid

Thread ID:





3861 Apr 15,2003 02:53 AM UTC Apr 15,2003 04:02 PM UTC WinForms 3
Tags: GridControl
vamsi krishna
Asked On April 15, 2003 02:53 AM UTC

Hi, I have used a Databoundgrid and tried giving one of the coulmn as a formula. When i have given the following property the system is getting hanged and goes into a infinte loop. grid1.Binder.InternalColumns(3).StyleInfo.CellType = "Static" grid1.Binder.InternalColumns(3).StyleInfo.CellType = "FormulaCell" grid1(1, 4).Text = "="c + "sum(a1:b1)" If i give grid1.Binder.EnableAddNew = False then it is working fine. But i want to allow the Add to be happen in the grid. Please help me in solving this issue. Thanks in advance. Regards, vamsi.

Administrator [Syncfusion]
Replied On April 15, 2003 07:19 AM UTC


vamsi krishna
Replied On April 15, 2003 11:44 AM UTC

Hi, Thanks for the immediate response. I have dowloaded the sample given and tried but it is not working fine if Me.gridDataBoundGrid1.EnableAddNew = False is commented. I want the grid to be editable. Please let me know if there is any workaround to implement this. Thanks is advance. Regards, Vamsi.

Administrator [Syncfusion]
Replied On April 15, 2003 04:02 PM UTC

If you change <= dt.Rows.Count to < dt.Rows.Count, you will avoid the problem with the addnew row. Of course, when you add the new row, you will have to add a new FormulaTag to the arraylist if you want any cells in teh new row to be formula cells.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon