Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150492 | Jan 9,2020 03:51 AM UTC | Jan 14,2020 12:43 PM UTC | WinForms | 8 |
![]() |
Tags: SfDataGrid |
sfDataGrid.View.GetPropertyAccessProvider().SetValue(sfDataGrid.GetRecordAtRowIndex(rowIndex), sfDataGrid.Columns["CustomerID"].MappingName, data); |
Imports Syncfusion.WinForms.Core.Utils
Private Sub SfListView1_SelectionChanged(ByVal sender As Object, ByVal e As Syncfusion.WinForms.ListView.Events.ItemSelectionChangedEventArgs)
Dim data = (TryCast(sender, Syncfusion.WinForms.ListView.SfListView)).SelectedItem
Me.Close()
Dim sfDataGrid = Me.dataGridForm.sfDataGrid1
If sfDataGrid.CurrentCell IsNot Nothing AndAlso sfDataGrid.CurrentCell.RowIndex >= 0 Then
Dim rowIndex = sfDataGrid.CurrentCell.RowIndex
sfDataGrid.View.GetPropertyAccessProvider().SetValue(sfDataGrid.GetRecordAtRowIndex(rowIndex), sfDataGrid.Columns("Country").MappingName, data)
Dim invalidateRowRectangle = ReflectionHelper.GetMethod(sfDataGrid.TableControl.GetType(), "InvalidateRowRectangle")
ReflectionHelper.Invoke(invalidateRowRectangle, sfDataGrid.TableControl, New Object() { rowIndex,False })
End If |
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.