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

Adding a new row to a databound grid....(v1.6.1)

Thread ID:





17338 Aug 6,2004 02:27 AM UTC Aug 6,2004 02:57 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On August 6, 2004 02:27 AM UTC

Apparently, I''ve screwed something up, but I don''t know what- I''ve got a databound grid that I dynamically bind to a dataview using something similar to; dvDepartments = New DataView(DepartmentsDataTable, "StoreID = 1", "Descrip" DataViewRowState.CurrentRows) gridDepartment.DataSource = dvDepartments However I cannot figure out how to add a new row to the grid. I''ve set AllowNew on the DataView, and EnableAddNew on the grid, and I can begin typing in the very last grow of the grid, but as soon as I click on a different row, anything I entered dissappears. Is there something obvious that I''m missing here? Thanks, s.s.

Administrator [Syncfusion]
Replied On August 6, 2004 02:57 AM UTC

Nevermind. I *was* missing something obvious -- my DataView is filtered by StoreID, and since this value wasn''t being set, the row is filtered out as soon it loses focus. I had a fresh cup of coffee, and things started looking a little clearer! Later, s.s.


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