anithajones Posted December 6, 2005 Posted December 6, 2005 I get "Option Strict disallows late binding" error on the lines shown. What am I doing wrong? Dim dr As DataRow dr = ddlDC.DataSource.Tables(0).NewRow dr.Item(0) = "ALL" dr.Item(1) = "ALL" ddlDC.DataSource.Tables(0).Rows.InsertAt(dr, 0) Quote
Diesel Posted December 6, 2005 Posted December 6, 2005 dr = ddlDC.DataSource.Tables(0).NewRow this sets dr as a typed datarow...a class that is dynamically created when you filled the dataset Changing the declaration should fix the problem. Dim dr As ddlDC.DataSource.Tables(0).NewRow Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.