You are not logged in.

elsardo

Beginner

  • "elsardo" started this thread

Posts: 10

Date of registration: Jun 10th 2011

  • Send private message

1

Saturday, July 9th 2011, 4:07am

CLEAN JGRID

I HAVE A JGRID (MSFlexGrid IN VB) BUT THEN I WANT TO MAKE SOME DATA TO DELETE ALL THE GRID Refill with other data in VB is done with "CLEAR" BUT NOT AS JABACO

EXAMPLE

CUADRO.CLEAR (VB), EN JABACO how?

emil

Beginner

  • "emil" is male

Posts: 7

Date of registration: Jul 7th 2011

Location: Staßfurt,Germany

  • Send private message

2

Saturday, July 9th 2011, 11:16am

Sugestion:

Source code

1
2
3
4
5
6
7
8
9
Public Sub JBGrid_clear(Grid as JBGrid)
   rows=Grid.Rows
   Grid.Rows=0
   Grid.Rows=rows
End Sub

Public Sub Command1_Click()
   JBGrid_clear(yourJBGrid)
End Sub

Hope this helps around.

This post has been edited 1 times, last edit by "emil" (Jul 11th 2011, 3:13pm)


elsardo

Beginner

  • "elsardo" started this thread

Posts: 10

Date of registration: Jun 10th 2011

  • Send private message

3

Monday, July 11th 2011, 3:36am

the "(" I get an error

JBGrid_clear (yourJBGrid)

emil

Beginner

  • "emil" is male

Posts: 7

Date of registration: Jul 7th 2011

Location: Staßfurt,Germany

  • Send private message

4

Monday, July 11th 2011, 3:15pm

Post your code for better help. :huh:

elsardo

Beginner

  • "elsardo" started this thread

Posts: 10

Date of registration: Jun 10th 2011

  • Send private message

5

Tuesday, July 12th 2011, 3:37am

Now it works but I have changed a bit

I deleted this:

Public Sub JBGrid_clear(Grid as JBGrid)
rows=Grid.Rows
Grid.Rows=0
Grid.Rows=rows
End Sub



Use only this:

Public Sub Command1_Click()

myGrid.Rows=0

end sub



I rescinded this:

Grid.Rows=rows because the data is deleted and reappear, you should have jgrid other objects as well as the clear command

gracias

Rate this thread
WoltLab Burning Board