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

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

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.

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon