-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: pradeep145
Message 3 in Discussion

Hi mahesh. i also faced the same problem before and solution of this problem is call 
the following function on the OnItemDataBound event of the datagrid aur repeater 
whatever u are using.like this OnItemDataBound ="GenerateRadio"  
protected void GenerateRadio(object 
sender,System.Web.UI.WebControls.DataGridItemEventArgs e) 
{ 
//condition to check that is not the header or footer etc 
//ie to make sure that is list item 
string strnIndex = Convert.ToString(nRDIndex); 
if ((e.Item.ItemType == ListItemType.AlternatingItem) ||( e.Item.ItemType == 
ListItemType.Item)) 
{  
Label lblRadio1 = new Label();  
lblRadio1 = (Label)e.Item.FindControl("lblRadio");  
//put the radio button on the label that is uesd in the datagrind 
//supply the id of the radio button according to the row checked 
lblRadio1.Text= "<input type=radio name='myradiogroup' id='myradiogroup">" ;  
//lblRadio1.Text= "<input type=radio name='myradiogroup' id='myradiogroup" + strnIndex 
+ "' " + "value= " + 
((TextBox)e.Item.FindControl("txtUserName")).Text.ToString()+strnIndex+ ">" ;  
} 
} 
in case any problem let me know about. 
Regds 
Pradeep Chaudhary

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to