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.
Hi,
I am trying to ascertain whether a cell has any user entered value or not. This is what I wrote, but this doesnt seem to be the right way of doing it.
If Me.GridDataBoundGrid1(row, col).HasText Then
(Do Something)
Thanks
Jots
ADAdministrator Syncfusion Team November 15, 2002 05:32 PM UTC
It depends where/when you are trying to access a grid value. As long as the cell is not being actively edited, you can use code such as
Dim myValue as Object = Me.GridDataBoundGrid1(row, col).CellValue
If Not myValue Is Nothing Then
......
End If
But if you are actively editing the cell, you need to get the value from the CurrentCell.Renderer.ControlText.
Dim value as String = Me.GridDataBoundGrid1.CurrentCell.Renderer.ControlText