----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: BusyWizy Message 2 in Discussion The difference in the way u access the text in the columns is because of the way the grid is rendered in the EDIT mode and the NORMAL mode. when you press the delete link, all the rows (or the clicked row) is in the normal state. i.e. the row is displayed using plain text (td, tr elements). when u switch any row into EDIT mode by clicking on the UPDATE link, the infomation in the row is not displayed in plain text. however it is placed in an editable control. due to this there is a disparity in the way u access the contents of a cell depending on the mode your row is in. regards, nauzad kapadia [mvp] >From: XoherAga >Message 1 in Discussion > >Hi, I have some code where there is a statement in the updatecommand >methid of the datagrid where it retrieves the groupcode as follows >: groupCode = >Integer.Parse(e.Item.Cells(1).Controls(0),TextBox).Text) but in the >deleteCommand procedure the code is as follows : groupCode = Integer.Parse >(e.Item.Cells(1).Text) If I try to use the code of deleteCommand in the >updateCommand to retrieve the groupCode it doesnot work can some one tell >me the difference. Regards Zoher Aga. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/mumbaiusergroup/_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]
