Try ctype(E.Item.Cells(I).Controls(0),System.Web.UI.WebControls.TextBox) Jarrad
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 11:32 PM To: [EMAIL PROTECTED] Subject: [AspNetAnyQuestionIsOk] Greetings, I have a data grid control and code behind page. I took this code from "http://www.dotnetjunkies.com/quickstart/util/srcview.aspx?path=/quickst art/aspplus/samples/webforms/data/datagrid6.src" Dim I As Integer For I=2 To NumCols-2 'skip first, second and last column Dim CurrentTextBox As System.Web.UI.WebControls.TextBox CurrentTextBox = E.Item.Cells(I).Controls(0) Dim ColValue As String = CurrentTextBox.Text Next Visual Studio scribles "E.Item.Cells(I).Controls(0)" and tells that "Option Strict On disallows implicit conversions from "System.Web.UI.Control" to "System.Web.UI.WebControls.TextBox"/ I will appreciate your help--Zehra Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
