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
290
WinGrid creating a default row when bind collection is zero
posted

Hi, 

When having no data in my own IBind collection on form load, I bind the collection using the function wingrid.SetDataBinding(collection, null, true); via the run-time. However, the collection then comes back with having an object in it ( therefore the count = 1) and therefore a blank row is created.

is there a way for the grid from preventing this behaviour when the collection is 0 before the bind?

Note: When there is data before the bind. i.e. data from the back-end..the grid works perfectly by only creating 1 row per object inside the collection, but if there is no data from the backend, the above happens.

Thanks

Chris