ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

CompTIA Exam Vouchers
Save money on CompTIA exams
Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more

* ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i

Online practice tests

Certification sites

Online university

Online college

Online education

Distance learning

Software forum

Server administration forum

Programming resources






This is interesting: Free IT Magazines | Databases help forum



General discussions > Public newsgroups > microsoft.public.cert.exam.mcsd > Tricky MCSD.NET question

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread






Author Tricky MCSD.NET question
Sada
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Tricky MCSD.NET question

Hi,

I came across the following question in a sample test on a web site:

If you were to change the colors of the values displayed in a certain column
of a DataGrid control, what event of the DataGrid control should you use to
implement the color scheme?

a. ItemCreated event
b. SelectedIndexChanged event
c. ItemDataBound even
d. PreRender event.

I think d should be the correct answer because at the time of rendering,
you know the value that has to be displayed in the column of the datagrid
and you can change the color based on the value.

But the correct answer has been given as c with the explanation:

" When the ItemDataBound is raised, access the data that will be rendered to
the cell with Item.Controls property of DataGridItemEventArgs parameter e."

The question does not make sense to me. Does it to anybody? Why not d?

Thanks

Sada



Report this post to a moderator

Old Post 11-17-02 07:23 AM
Reply w/Quote Edit/Delete Message IP: Logged
Philip Q [MVP]
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Re: Tricky MCSD.NET question

I would pick C as well. Mainly because you can use the DataGridItemEventArgs
(which you don't get with the PreRender event) to quickly locate the column
and change the color of it (I think it can be done in 1 line of code).


--
Philip Quinn - wisemonk@aspalliance.com
Microsoft MVP (ASP.NET)
Anything Goes ASP -
http://www.aspalliance.com/wisemonk/


"Sada" <sadamahan@hotmail.com> wrote in message
news:#s8O2HhjCHA.440@tkmsftngp11...
> Hi,
>
> I came across the following question in a sample test on a web site:
>
> If you were to change the colors of the values displayed in a certain

column
> of a DataGrid control, what event of the DataGrid control should you use

to
> implement the color scheme?
>
> a. ItemCreated event
> b. SelectedIndexChanged event
> c. ItemDataBound even
> d. PreRender event.
>
> I think d should be the correct answer because at the time of rendering,
> you know the value that has to be displayed in the column of the datagrid
> and you can change the color based on the value.
>
> But the correct answer has been given as c with the explanation:
>
> " When the ItemDataBound is raised, access the data that will be rendered

to
> the cell with Item.Controls property of DataGridItemEventArgs parameter

e."
>
> The question does not make sense to me. Does it to anybody? Why not d?
>
> Thanks
>
> Sada
>
>
>



Report this post to a moderator

Old Post 11-17-02 08:23 AM
Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Featured site: MCSE, MCSD, CompTIA, CCNA training videos



Forum Jump:
Rate This Thread:
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is OFF.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps