Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
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 April 3rd, 2004, 09:03 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default Using Sub DataGrid_itemCommand when Page_Onload

Hi all,
I am Using DataGrid object.
i want to do operation by default when load of the form for the first selected item.
is there a way to use Sub itemCommand for the grid at the initialization of the form,
the problem with me is the argument e ... how to pass it
i need to pass this sub
a parameter like Grid1.items(Grid1.selectedindex)

any one could help..


Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old April 3rd, 2004, 11:14 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

After the datagrid has been bound can't you just call that sub? Pass the page to the handler as the "sender".

...
Grid1.Bind()
DataGrid_ItemCommand(Me, Grid1.Items(Grid1.SelectedIndex))





Similar Threads
Thread Thread Starter Forum Replies Last Post
dataGrid_ItemCommand shai505 C# 4 February 24th, 2006 07:33 AM





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