01.
02.
Dim
ddlCountryCode
As
DropDownList =
CType
(e.Row.FindControl(
"ddlEditCountryCode"
), DropDownList)
03.
IF
Not
IsNothing(ddlCountryCode)
Then
04.
With
ddlCountryCode
05.
.DataSource = DataTableCountryCode
06.
.DataTextField =
"CountryName"
07.
.DataValueField =
"CountryCode"
08.
.DataBind()
09.
End
With
10.
ddlCountryCode.SelectedIndex = ddlCountryCode.Items.IndexOf(ddlCountryCode.Items.FindByValue(e.Row.DataItem(
"CountryCode"
)))
11.
End
IF