Le 22/01/2012 19:42, M. Cs. a écrit :
> Public Sub gv_Data(x As Integer, y As Integer) ' Fills the GridView
> with the querry results
> Dim i As Integer
> Dim szine As String
> If ((x Mod 2) = 0) Then
>    szine =&E5E5E5&
> Else
>    szine =&FFFFFF&
> Endif
>
> Select Case y
> Case 0
>   gV.Data.Text = Keress.Name(x)
>   gV.Data.BackGround = szine
> Case 1
>   gV.Data.Text = Keress.Volm(x)
>   gV.Data.BackGround = szine
> Case 2
>   gV.Data.Text = Keress.Road(x)
>   gV.Data.BackGround = szine
> Case 3
>   gV.Data.Text = Keress.Size(x)
>   gV.Data.BackGround = szine
> Case 4
>   gV.Data.Text = Keress.When(x)
>   gV.Data.BackGround = szine
>
>   End Select
>
> End
>
> Tell me just where to put, and how. I've tried many versions but
> always resulting with Stack overflow error.
> Thanks!
>
> Csaba
>

Anywhere not in the Data event handler, as adjusting the column width 
will call it recursively.

-- 
Benoît Minisini

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to