DataGrid - Databinding a function

  • Thread starter Thread starter Jl_G_0
  • Start date Start date
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.
 
Back
Top