or
| Dim exporter As New ExportToExcelML(documentTop.DataGrid) |
| exporter.SheetMaxRows = ExcelMaxRows._65536 |
| exporter.ExportVisualSettings = True |
| Dim fileName As String = "c:\ExportedData.xls" |
| exporter.RunExport(fileName) |
| Me.DataGrid.ColumnChooser.Show() |
In our database tables we have a field isDeleted. This indicates if a record is logically deleted.
There is a Delete-Button on the form. If the user presses this button, the flag should be set, then the data saved. After that the window is closed and the user gets back to the form with the list. The list is built upon a database view with the where-clause "where IsDeleted = 0".
For editing the data I have a detail data form with a ObjectView. On the form there is a RadCheckbox-Control named cbIsDeleted.
The control is bound via the IsChecked-Property to the persistent data.
| cbIsDeleted.ToggleState = |
| Telerik.WinControls.Enumerations.ToggleState.On; |
I tried also:
| cbIsDeleted.Checked = true; |