Binding A Image Button. Please Help!!!Urgent
-
Hello I have a asp.net datagrid with 4 bound columns and an item template column with an image button control. all these columns have the same datasource, i can bind the 4 bound columns just fine to their apporiate columns in the datasource but i am at my wits end as to how to get the correct image url's for all the image buttons in the item template. Please help it's rather urgent Thank you
-
Hello I have a asp.net datagrid with 4 bound columns and an item template column with an image button control. all these columns have the same datasource, i can bind the 4 bound columns just fine to their apporiate columns in the datasource but i am at my wits end as to how to get the correct image url's for all the image buttons in the item template. Please help it's rather urgent Thank you
Aenon, You can a code similar to this:
((ImageButton)(MyDataGrid.Items[0].Cells[2].Controls[1])).Command = _(Event handler of some sort)_;
Just make sure the indexes match. Hope this helps.