how to get item index ?

M

Microsoft

Hey
I have checkbox control in template of the datagrid. In the item_created
event of dg, I added clickevent( maybe it's change event, doesn't matter )
to the checkbox. But I want to know which item is clicked how to check it ?
Wireup this event to some select_item of dg ?
Jarod
 
K

Kevin Spencer

You write a server-side event handler for the checkbox's Click event. Be
sure to set its AutoPostBack property to true (it is false for checkboxes by
default).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
M

Microsoft

You write a server-side event handler for the checkbox's Click event. Be
sure to set its AutoPostBack property to true (it is false for checkboxes
by default).

Yes, but it's in datagrid and I need to know which item in datagrid this
checkbox represents.
Jarod
 
K

Kevin Spencer

Yes. Sorry I missed the reference to the DataGrid.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top