Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 14th, 2004, 05:07 PM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cast a String into Datagrid

Hi, im trying to do this:

((DataGrid)(e.Item.FindControl(e.Item.NamingContai ner.ID))).EditItemIndex = -1;

Is this Possible, when i do a quickwatch over it i get this message:

    e.Item.FindControl(e.Item.NamingContainer.ID) function 'e.Item.FindControl' evaluated and returned null
Does anyone have a clue?

Regards from Mexico

Erich

 
Old January 14th, 2004, 05:23 PM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem Solved....

((DataGrid)e.Item.Parent.Parent.Parent.FindControl (ControlID)).EditItemIndex = -1;

Regards

Erich






Similar Threads
Thread Thread Starter Forum Replies Last Post
Cast from string "" to type 'Double' is not dounme ADO.NET 1 March 8th, 2005 01:31 PM
Cast from string "" to type 'Double' is not dounme SQL Server 2000 1 February 18th, 2005 01:44 AM
Cast from string "" to type 'Integer' is not valid h3x SQL Server ASP 1 January 30th, 2005 09:35 PM
Query String Cast or Convert function hoffmann Access 6 February 25th, 2004 01:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.