Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 February 7th, 2004, 11:26 AM
Authorized User
 
Join Date: Jun 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sandeep
Default datagrid control

Hi!
   i have a dropdownlist in template column of datagrid. When the dropdownlist fires SelectedIndexChanged i want to know which row's dropdownlist fired it. Also how can i access properties of dropdownlist in code?
Thanxs in advance
sandeep
 
Old February 9th, 2004, 05:18 AM
Registered User
 
Join Date: Nov 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to basant Send a message via MSN to basant Send a message via Yahoo to basant
Default

Hi,
u can follow this code & can get the answer , i used this for an imagebutton

If dgrdEmployee.HasControls = True Then

                For i = 0 To dgrdEmployee.Items.Count - 1
                    Item = dgrdEmployee.Items(i)
                    strScript = "return askConfirmation ('" & dgrdEmployee.DataKeys(i) & "')"

                    CType(Item.FindControl("cmdDelete"), ImageButton).Attributes.Add("OnClick", strScript)
                Next

            End If

s/w engg
 
Old February 9th, 2004, 10:54 AM
Authorized User
 
Join Date: Jun 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sandeep
Default

Thanxs basant for sharing ur knowledge with me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
User COntrol Datagrid inside datagrid rodmcleay ASP.NET 1.0 and 1.1 Professional 3 April 14th, 2007 10:11 AM
Urgent: Other control in Datagrid mrleokarthik Pro VB 6 0 November 27th, 2003 01:30 AM
Datagrid Control bmains VB.NET 2002/2003 Basics 3 November 20th, 2003 12:49 PM
DataGrid Control mike123abc Beginning VB 6 0 November 18th, 2003 04:24 AM
DataGrid Control cej2583 VB How-To 0 August 7th, 2003 02:03 PM





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