How to insert a new row using Silverlight 3 DataGrid (and not use DataForm)?

In silverlight 2, you could add new rows to a collection through a DataGrid. But in silverlight 3, I cannot figure out how to do this without using a DataForm. Any idea?

+3
source share
2 answers

Add an empty source to the source

lst = New genericList With { _
                      .field1 = "", _
                      .field2 = "", _
                      .field3 = "", _
                      .field4 = ""}
rtnlst.Add(lst)
+1
source

In the past, I was lucky just adding an empty string to the data source and then checking for non-zero values โ€‹โ€‹when updating the datagrid. The user can simply click on an empty line and add information, and the update procedure can insert values โ€‹โ€‹from there.

0
source

Source: https://habr.com/ru/post/1710558/


All Articles