[Gambas-user] Any method to show better the current row in a DataView Grid?

Constantin Teodorescu brailateo at gmail.com
Wed Jan 17 11:02:13 CET 2018


Hello all,

I'm evaluating Gambas3 (I have compiled  and run 3.10 on a Linux Mint) and
I check various things!

Is there any hidden property that will show the current row in a DataView
Grid, more than the bold row number in the left header?

I have done something ugly to that, is there any othe more elegant method
to achieve the same thing? :-)

Public Sub PersDV_Activate()
  Dim numRow As Integer
  Dim oldText As String
  numRow = PersDV.View.Row
  If numRow > -1 Then
    oldText = PersDV.View[numRow, 0].Text
    PersDV.View[numRow, 0].Background = Color.blue
    PersDV.View[numRow, 0].Foreground = Color.white
    PersDV.View[numRow, 0].Text = oldText
    PersDV.View[numRow, 0].Refresh
  Endif
End

Thanks,
Teo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180117/4135fa87/attachment.html>


More information about the User mailing list