General information
Category:
Forms & Form designer
Hello Cetin
didn't function at first
cause in the init of grid was:
with this
.recordsource = ""
.columncount = -1
.columncount=fcount(lcAliasName)-3
.recordsource = lcAliasName
for ix=1 to .columncount
with .columns(ix)
.controlsource = lcAliasName+"."+field(ix)
....
endwith
so i added a property "nrofwantedfields" to gridclass and changed code to:
with this
.recordsource = ""
.columncount = -1
IF .nrofwantedfields = 0
.columncount=fcount(lcAliasName)-3
ELSE
.columncount= .nrofwantedfields
ENDIF
.recordsource = lcAliasName
for ix=1 to .columncount
with .columns(ix)
.controlsource = lcAliasName+"."+field(ix)
...
endwith
works just fine ..
thx for the help
Christian
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only