with normal table data, i am able to add new records.
if i am using ObservableCollection as datasource...binding.
on addbutton click i am writing this code...but, still its not showing(not even the plus sign) the empty record template to enter new data.
dg.FieldLayoutSettings.AddNewRecordLocation = AddNewRecordLocation.OnTopFixed;
any advice?
Your sample code implies you're trying to use the grid UI to let the user edit/add records, but your wording implies you want to add an item to the underlying collection.
I haven't messed with using the grid to edit/add new records (ui-wise), but If you add an item to the underlying collection that your grid's bound to, the record will automagically appear in the grid.
If you don't have the hotfix installed and you're using grouping, a bug will cause your grid to clear out. The hotfix fixes this perfectly.
Hi,
I am using the grid to add,edit,delete the records.
I am getting data into observablecollection and then giving it to grid as datasource.
if user enter new record, with a query in the dg_updated event to update the database.
but, if i use the observablecollection as datasource for the grid, the new record template is not appearing at all.
i have no possibility to enter new record in the template. no plus sign to enter the data...no new empty row appears.
am i clear in explaining? if not drop message.