setting datagrid row id disables the item_command

F

fredd00

Hi

I want to set my datagrid rows to specified ids so that i can do a
getElementById to change the back color and other stuff.


the thing is on click i change the row's back color no problem,
if i click on an other row i want the first row to be reset to it's
previous color (prior to the click) and i want the new row to have the
new back color.

this i can do.

here is the weird part

my first column is a template column with a linkbutton
if i set in item_databound
e.Item.ID = "TR_" + (DataBinder.Eval(e.Item.DataItem,"ID")).ToString();

once in click the linkbutton it postsback but doesn't do the datagrid
item_command function , the second time you click it does the
item_command function

any ideas why ?

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