The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How do I update a cell value in a column that has been moved? When I do this now the wrong cell gets the value I'm trying to set it to.
Dim cc As GridCurrentCell = dgEng.CurrentCell Dim cm As CurrencyManager = CType(Me.BindingContext(Me.dgEng.DataSource, Me.dgEng.DataMember), CurrencyManager) Dim dr As DataRow = CType(cm.Current, DataRowView).Row
the problem is the ordinal value doesn't move with the colum. Do I need to update the datasource and then rebind? Or can I find the column position another way?
ADAdministrator Syncfusion Team May 31, 2008 12:19 AM UTC
Maybe this will work for you. Instead of trying to update the grid cell, try to change the datarow directly. Dim dr As DataRow = CType(cm.Current, DataRowView).Row
dr("PlatMap") = PMfile
If you still want to find the column index, you can try dim colIndex as Integer = grid.Binder.NameToColIndex("PlatMap")