We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Detecting cell's value

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

1 Reply

AD Administrator 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

Loader.
Up arrow icon