add button control in datagrid

  • Thread starter Thread starter Grey
  • Start date Start date
this will add a radiobutton to a grid. put this code in your itemdatabound event handler
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)

{

Label lbl = (Label)e.Item.FindControl("Dig");

if(lbl != null)

lbl.Text = "<input type=radio name='samegroup' value='" + e.Item.Cells[1].Text + "'>";


--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
I want to know that how to add button control at each row of the records in datagrid
 
Back
Top