1.get value of dropdown on selected index changed event
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
int intReference = int.Parse(ddlCompany.SelectedValue.ToString());
fnShowDetails(intReference);
}
2. // here u should call database and bind grid with data table .
protected void fnShowDetails(int intReference)
{
DataSet dsGetTechAcq = new DataSet();
dsGetTechAcq = objExpenditure.fnGetTechAcq(intReference);
gvHardware.DataSource = dsGetTechAcq.Tables[0];
gvHardware.DataBind();
}