Hey there,
Change the SelectedIndexChanged event to this:
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
Bussinessobject.BOEBO = newBussinessobject.BO();
DataSet ds = EBO.Filldataset(EBO);
if (ds != null && ds.Tables.Count > 0)
{
DataTable dt = EBO.Filldataset(EBO).Tables[0];
if (dt != null && dt.Rows.Count > 0)
{
txtEid.Text = dt.Rows[0][0].ToString();
txtEfname.Text = dt.Rows[0][1].ToString();
txtElname.Text = dt.Rows[0][2].ToString();
}
}
}
if you know the specific Column names you can specify them like this:
dt.Rows[0]["YourColumnName"].ToString()
Let me know if helps.
Azee...