|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem in MSFLIX Grid
Hi: Can any one please tell me why the grid is showing only the last
two records as there are total 5 records in it. Is there any settings are required in the grid. I am running program in debug mode and put my mouse over on each value and they are 5 records but instead of all 5 the grid shows the last two records.i am using MSFlexGrid Do While Not rsADO.EOF sCurrentBalance = CurrentBalance(i, rsADO!client_name, "" & rsADO!bal_lower, "" & rsADO!bal_upper) sCurrentCount = CurrentCount(i, rsADO!client_name, "" & rsADO!bal_lower, "" & rsADO!bal_upper) If Val(sCurrentBalance) <> 0 Then i = i + 1 grdDistribution.Rows = i + 1 grdDistribution.Row = i grdDistribution.TextMatrix(i, 1) = rsADO!clientcode ' client code grdDistribution.TextMatrix(i, 2) = rsADO!client_name grdDistribution.col = 3 grdDistribution.CellAlignment = 1 grdDistribution.TextMatrix(i, 3) = rsADO!balance grdDistribution.col = 4 grdDistribution.CellAlignment = 1 grdDistribution.TextMatrix(i, 4) = rsADO!bal_lower grdDistribution.col = 5 grdDistribution.CellAlignment = 1 grdDistribution.TextMatrix(i, 5) = "" & rsADO!bal_upper grdDistribution.col = 6 grdDistribution.CellAlignment = 1 'grdDistribution.TextMatrix(i, 6) = Distribution ' "" & rsADO!Distribution grdDistribution.TextMatrix(i, 6) = rsADO!Distribution grdDistribution.TextMatrix(i, 7) = sCurrentBalance grdDistribution.TextMatrix(i, 8) = sCurrentCount End If rsADO.MoveNext Loop Thanks. |
|
#2
|
||||
|
||||
|
I think you sCurrentBalance is 0 for other 3 records thats why its not showing them
Quote:
__________________
Do, or do not. There is no 'try'. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Problem in MSFLIX Grid |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|