protected
void
ddlDw_SelectedIndexChanged(
object
sender, EventArgs e)
{
DropDownList ddlDw
=
sender
as
DropDownList;
GridViewRow gvRow
=
ddlDw.NamingContainer
as
GridViewRow;
CheckBoxList chklXdzz
=
gvRow.FindControl(
"
chklXdzz
"
)
as
CheckBoxList;
string
dwbh
=
gvUser.DataKeys[gvRow.RowIndex].Values[
1
].ToString();
string
curDwbh
=
ddlDw.SelectedValue;
if
(dwbh
!=
curDwbh)
{
BindXdzz(chklXdzz, curDwbh);
}
else
{
string
xdzzbh
=
gvUser.DataKeys[gvRow.RowIndex].Values[
2
].ToString();
BindXdzz(chklXdzz, curDwbh, xdzzbh);
}
}