با سلام.
ممنون از این کد واقعاً کاملی که گذاشتید.
در صورت امکان در مورد این قسمت از برنامتون یکم توضیح بدید.ممنون.

protected
void DropDown_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList xList = (DropDownList) sender;
string strChildPieceSQL = "SELECT * FROM tblChildPiece WHERE intID=" + Convert.ToInt32(xList.SelectedValue.ToString());
TableCell Cell = (TableCell) xList.Parent;
DataGridItem Item = (DataGridItem) Cell.Parent;
DropDownList ModelList = (DropDownList) Item.Cells[2].Controls[1];
OleDbConnection Cnn =
new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath(".\\Data\\myDB.mdb"));
OleDbDataAdapter Da;
DataSet Ds;
Da =
new OleDbDataAdapter(strChildPieceSQL, Cnn);
Ds =
new DataSet();
Da.Fill(Ds, "tblChildPiece");
ModelList.DataSource = Ds.Tables[0].DefaultView;
ModelList.DataTextField = "strSubPieceName";
ModelList.DataValueField = "strSubPieceName";
ModelList.DataBind();
ListItem xChildItem = ModelList.Items.FindByText(strChildPiece.Trim());
if (xChildItem != null) xChildItem.Selected = true;
}