Hi!
I'm using IG 2008.1 and .NET 2.0. I bound an UltraWebGrid to an SQL DataSource.Below the Grid I placed a button that calls a Stored Procedure wich changed the SQL data. Now I want to refresh the Grid. I tried to use the databind() method, but that didnt' work.
What can I do to programatically refresh the Grid?
Thank you in advance!
Hello,
Please, find the project attached. When you want to commit to database you have to allow CRUD operation for SqlDataSourse (Configure the Select Statement -> Advanced...) and set explicitly the properties BaseTableName and DataKeyField of igtbl: UltraGridBand tag.
http://blogs.infragistics.com/blogs/tony_lombardo/archive/2008/01/29/demystifying-infragistics-webgrid-databinding.aspx
Thanks.
As Ivan said, if you post your markup and your code, or provid a sample project, some of us may look at it and spot your problem.
If you don't, we probably won't. ;-)
The situation is quite simple to reproduce:
What can I do to get the Grid to update?
Thanks!
Patrick is right. If that is not helpful, please provide additional information like aspx, code-behind or sample project.
GermanDev -
More information would be helpful. However, you must also set the datasource property of the grid to the updated datasource, usually a dataset.
webgrid.datasource = thenewdataset
webgrid.databind()
Patrick