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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:





17338 Aug 5,2004 10:27 PM Aug 5,2004 10:57 PM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On August 5, 2004 10:27 PM

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 5, 2004 10:57 PM

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.

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.