DataGrid - Databinding a function

J

Jl_G_0

Hey all.

I have a question, hope its not hard, searched several groups but
couldn't find nothing like this...

I have a DataGrid with some columns with data on it,
AutoGenerateColumns=FALSE and a TemplateColumn with a Button on it.

All I want to do is, click the Button, the Button calls a function
that receives a INTEGER like:
doShow(int i) and executes the code.

The problem is the INTEGER needs to be the ID from the current line
(one button per line). The ID is on the datagrid too (but is
VISIBLE=FALSE), so I thought I could easily BIND with <%# tags but I
cant get it to work.

Any help is appreciated, im using c# btw. Thanks.
 

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,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top