Update: I fixed this addressing each element explicitly
((Node)ovlRegs.SelectedObject).Name = textBoxName.Text;
((Node)ovlRegs.SelectedObject).Size = textBoxSize.Text;
((Node)ovlRegs.SelectedObject).Description = textBoxDiscription.Text;
((Node)ovlRegs.SelectedObject).Base= (ovlRegs.GetParent(ovlRegs.SelectedObject)==null);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My code gets the data from the current row and populates several textbox, but how do i get it back into the control if there were edits?
Example Code:
ovlRegs.SelectedItem.RowObject = new Node(Name.Text, Offset.Text, Size.Text, Discription.Text, false);
ovlRegs.UpdateObject(ovlRegs.SelectedItem.RowObject);
ovlRegs.RefreshObject(ovlRegs.SelectedItem.RowObject);
I know I am showing my ignorance, but how do I save the data back ?
Update: I fixed this addressing each element explicitly
((Node)ovlRegs.SelectedObject).Name = textBoxName.Text;
((Node)ovlRegs.SelectedObject).Size = textBoxSize.Text;
((Node)ovlRegs.SelectedObject).Description = textBoxDiscription.Text;
((Node)ovlRegs.SelectedObject).Base= (ovlRegs.GetParent(ovlRegs.SelectedObject)==null);