Image column calling SelectedIndexChanged ? (2nd post)

  • Thread starter Thread starter Andy Mackie
  • Start date Start date
A

Andy Mackie

Hopefully a simple datagrid question -

Rather than have a select button column, which appears as a LinkButton, I
want to display images in the column, and clicking the image should call the
SelectedIndexChanged event. How can this be done ?

Thanks,
Andy Mackie.
 
Andy Mackie said:
Rather than have a select button column, which appears as a LinkButton, I
want to display images in the column, and clicking the image should call the
SelectedIndexChanged event. How can this be done ?

Never mind, found a solution. Using the "click anywhere in a row to select"
solution (see http://tinyurl.com/33zj7), but adding the onclick to a Cell,
rather than a row, did the trick - e.g.

e.Item.Cells[notesCol].Attributes["onclick"] =
Page.GetPostBackClientHyperlink(button, "");

Andy Mackie.
 
Back
Top