Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149968 | Dec 16,2019 02:25 PM UTC | Dec 17,2019 12:42 PM UTC | WinForms | 1 |
![]() |
Tags: SfDataGrid |
Private Sub RemoveButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles RemoveButton.Click
Dim detailViewGrid = sfDataGrid1.GetDetailsViewGrid(2)
detailViewGrid.Columns.RemoveAt(1)
sfDataGrid1.TableControl.Invalidate()
End Sub |
Private Sub AddNewRow_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button2.Click
Dim orderDetails = New OrderDetails(10000, 12, 23, 5, 10, "ALFKI", New Date(2019, 12, 17))
Dim detailViewGrid = sfDataGrid1.GetDetailsViewGrid(2)
Dim collection As ObservableCollection(Of OrderDetails)=TryCast(detailViewGrid.DataSource, ObservableCollection(Of OrderDetails))
collection.Add(orderDetails)
End Sub |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.