Sunday, March 11, 2012

is that possible to set dropdown.visible=false when data is bound to it,,

yes it is possible to set grid to visible false after binding also see this cade u wwill get that

SqlConnection cn =newSqlConnection(ConfigurationManager.ConnectionStrings["EZHRConnectionString"].ToString());

SqlDataAdapter da =newSqlDataAdapter("select EmployeeID from hemployee", cn);

DataSet ds =newDataSet();

// da.SelectCommand = new SqlCommand("select employeeeid from hemployee he ", cn);

da.Fill(ds,"vhEmployee");GridView1.DataSource = ds.Tables["vhEmployee"];

GridView1.DataBind();

GridView1.Visible =false;

Vvissu


yes it is possible to set grid to visible false after binding also see this cade u wwill get that

SqlConnection cn =newSqlConnection(ConfigurationManager.ConnectionStrings["EZHRConnectionString"].ToString());

SqlDataAdapter da =newSqlDataAdapter("select EmployeeID from hemployee", cn);

DataSet ds =newDataSet();

// da.SelectCommand = new SqlCommand("select employeeeid from hemployee he ", cn);

da.Fill(ds,"vhEmployee");

DropDownList1.DataSource = ds.Tables["vhEmployee"];

DropDownList1.DataTextField ="EmployeeID";

DropDownList1.DataValueField ="EmployeeID";

DropDownList1.DataBind();

DropDownList1.Visible=false;

Vissu

No comments:

Post a Comment