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

New Message on BDOTNET

-----------------------------------------------------------
From: StillRudra007
Message 1 in Discussion

I need help ...
I have a grid with radio button,on selection of a radio button,on selection 
of ths button i have table where i will create and display checkboxes 
dynamically.
the code follows .....

        private void fnGenerateHandlingTypeSelect(DataTable dtHandlingPCRelation )
                {


                        TableRow tRow = new TableRow();
                        TableCell tCell = new TableCell();
                Label lblhandlinyType = new Label();
                        tCell.Controls.Add(lblhandlinyType);
                        DataRow drselectedRow;
                        lblhandlinyType.Text = strHandlingType.Trim();


                        dtHandlingPCRelation.PrimaryKey = new DataColumn[] 
{dtHandlingPCRelation.Columns[0]};
                        drselectedRow = 
dtHandlingPCRelation.Rows.Find(strHandlingType);

                        for(int intpcSeletedStatus = 1;intpcSeletedStatus < 
drselectedRow.Table.Columns.Count;intpcSeletedStatus++)
                                {
                                        CheckBox chkPC = new CheckBox();
                                        chkPC.EnableViewState = false;
                                        chkPC.Text = 
dtHandlingPCRelation.Columns[intpcSeletedStatus].ToString();
                                        chkPC.Checked = true;
                                        chkPC.ID = 
dtHandlingPCRelation.Columns[intpcSeletedStatus].ToString();
                                        
if(drselectedRow[intpcSeletedStatus].ToString() == "Yes")
                                        {
                                                chkPC.Checked = true;
                                        }
                                        else
                                        {
                                                chkPC.Checked = false;
                                        }
                                        tCell.Controls.Add(chkPC);
                                }
                        tRow.Cells.Add(tCell);
            tblHlTypePC.Controls.Add(tRow);
                        Page.DataBind();
                }



Now when i click for the fist time any radio button the correct values 
checkboxes are displayed in the table above the grid but when i clicked next 
radio button though while debuging the checkbox values change but in the 
screen the old value of check box is displayed.
i tried with Page.DataBind() but it not displaying the new values.

_________________________________________________________________
Think online shopping is cool? Enter the Baazee contest now! 
http://server1.msn.co.in/sp04/Baazee/ Win great prizes while you shop!



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

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