On the Master records, I have a button called "AddChild". When this is clicked, it fires the ItemCommand, with that name, and runs the following code to insert a child record
GridItem As GridDataItem = CType(e.Item, GridDataItem)
Unfortunately, this code only works if the Detail recordset already had records related to the master record. If there are no detail records related, The page refreshes but the RadGrid appears unchanged.
In the DetailTableDataBind, I am using ParentTableRelations to link the Master/Detail records up.
Any ideas how I can make this work as expected, and insert all of the time, instead of just when there are pre-existing detail records?
Thanks in advance.