Hello
I have tried to use de serialisation deserialisation code in my project and heve 2 additional problems
See my project i want to replace top default microsoft datagridview component with sfdatagrid on the bottom.
I added 2 buttons in the topleft corner of the screen to save and get settings of my sfdatagrid with following code (see view1.png,)
Private Sub btnSaveSettings_Click(sender As Object, e As EventArgs) Handles btnSaveSettings.Click
Using file = System.IO.File.Create("DgSfSelection.xml")
Me.DgSfSelection.Serialize(file)
End Using
End Sub
Private Sub btnGetSettings_Click(sender As Object, e As EventArgs) Handles btnGetSettings.Click
Using file = System.IO.File.Open("DgSfSelection.xml", System.IO.FileMode.Open)
Me.DgSfSelection.Deserialize(file)
End Using
End Sub
This works fine i group per status (see view.png) and save the settings in the xml file. Then i delete the grouping and then i Get the settings from xml.
And the grouping reappears.
One problem My Syncfusion.WinForms.DataGrid.GridImageColumn() are showing no images they show system.byte??? see view.jpg
How can i solve this?
Second problem: when i stop the program and restart. Then the normal grid is shown (without the grouping). then i want to get the settings and get an exception
TargetInvocationException. See view4.png and TargetInvocationException.txt. What am i doing wrong here?
Thanks
Wheel
Attachment:
TargetInvocationException_bbe9d816.zip