Posted 8 September 2017, 12:49 pm EST
I have a button for inserting a new row . Right now it inserts the parent row with blank fields but I want it also to do the child at the same time with blank rows and have it expanded to show that.
here is my code for the parent, i figured i could do the same for the child but nothing happens.
I got this off one of the posts but he was using two buttons, i want to do it all at once.
//Add row on parent table
DataSet ds = (DataSet)FpSpread1.Sheets.DataSource;
DataTable dt = ds.Tables["Parent"];
dr = dt.NewRow();
dr ="new row";
dr = dt.Rows.Count - 1;