Jafarian
|
Posted: 09/17/2003, 4:41 AM |
|
i want to build a Test EXAM Page , it contain QUESTIONs and 4 ANSWER for any.
i use Editable grid to get users answers, and use Radio Button to Show Answers for each Question, therefore each row must contain New Answere for New Questions, i write this code in BeforeBuildSelect event to change "WHERE" statment of RadioButton's DataSource, but it works only for first row, i tried BeforeShowRow Event but it did not Affect any thing !
Please Help me.
AnswersID.DataSource.Where = " QuestionID=" & QuestionID.Value
|
|
|
Si Cranmer
|
Posted: 09/17/2003, 6:10 AM |
|
J mate,
I have already done this but sorry cannot find it ...
Howevere (please excuse me if the codes not right as I use PHP) but if I remember right its in event <object>_datasource_BEFOREBUILDSELECT
<object>.datasource.sql = "Select...."
<object>.datasource.WHERE = " QuestionID=" & QuestionID.Value <object>.datasource.ORDER = " <field> DESC"
HTH
Si.
|
|
|
Jafarian
|
Posted: 10/05/2003, 12:38 AM |
|
it did not work , i test it.
i found that, Before_Build_Select event run once before show_grid event, then
if there any code to run in Before_Show_Row or Before_Show_ListBox , it will work.
Jafarian
|
|
|
|