public void BindGrid() { col = ObjUserlogin.Get_By_comandname("A"); grdvwUser.DataSource = col; grdvwUser.DataBind(); ViewState["commandname"] = "a"; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { col = objUser.Get_By_comandname(""); grdvwViewUser.DataSource = col; grdvwViewUser.DataBind(); ViewState["commandname"] = ""; } }