Accessing one cell from gridview
Hi,
I have one user list(gridview) and I want to set those users to be active or Inactive from that list. I did all the things , but now I have a problem with the condition.I don't know how to access the cell from the gridview in gvUserList_RowCommand function.
protected void gvUserList_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName.Equals("EditUser"))
{
Response.Redirect("~/AddUser.aspx?UserID="+e.CommandArgument);
}
else if (e.CommandName.Equals("SetUser"))
{
Logins objLogins = new Logins();
if (??????)
{
objLogins.SetActiveUser(int.Parse(e.CommandArgumen t.ToString()));
}
else
{
objLogins.SetInactiveUser(int.Parse(e.CommandArgum ent.ToString()));
}
}
}
Thank you
__________________
Thank you
|