Home Forums WinForms controls Xceed Grid for WinForms Problem adding rows to Detail Grid Reply To: Problem adding rows to Detail Grid

User (Old forums)
Post count: 23064

Hi jbailey,
I am still having troubles adding rows to the detail grid as well. I am working with Xceed Support on the issue and will post the results once I have working code.

Try adding the row by calling the master grid and let me know what happens, Something like:
Xceed.Grid.DataRow newRow = gridControl1.DataRows[0].DetailGrids[0].DataRows.AddNew();

I have tried this and got it to work once. But only once. I removed the code, and added it back, in the same place it was before, and it refuses to add the row. Not sure if there is something else in my code causing this. If it works for you, I can at least start looking through the code to see if there is anything else causing my difficulties.
Good luck!


Imported from legacy forums. Posted by KenG (had 391 views)