|
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.
|