Subject: datagrid control
Posted By: sandeep Post Date: 2/7/2004 10:26:28 AM
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
Reply By: basant Reply Date: 2/9/2004 4:18:03 AM
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
Reply By: sandeep Reply Date: 2/9/2004 9:54:59 AM
Thanxs basant for sharing ur knowledge with me.

Go to topic 9481

Return to index page 953
Return to index page 952
Return to index page 951
Return to index page 950
Return to index page 949
Return to index page 948
Return to index page 947
Return to index page 946
Return to index page 945
Return to index page 944