Everything is achievable through technology


protected void dgFileList_RowDataBound(object sender, GridViewRowEventArgs e)
if (e.Row.RowType == DataControlRowType.DataRow)
ImageButton ActiveImg = (ImageButton)e.Row.FindControl(“ActiveImg”);
ActiveImg.Command += new CommandEventHandler(ActiveImg_Command);
ActiveImg.Attributes.Add(“Cid”, DataBinder.Eval(e.Row.DataItem, “Cid”).ToString());
if (Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem, “active”)))
ActiveImg.ImageUrl = “../App_Themes/Common/images/enable.gif”;
ActiveImg.ImageUrl = “../App_Themes/Common/images/disable.gif”;


One thought on “Rowdatabound

  1. DataTable dt = dsDictionary.Tables[“Field”];

    DataRow dr = dt.Select(“Name=’LoginCredentials'”).FirstOrDefault();

    configData.Service.LoginCredentials = view.LoginCredentialsList.Where(x => x.Name == Convert.ToString(dr[“Value”])).Select(x => x.LoginCredentialsId).FirstOrDefault();

    DataRow dr2 = dt.Select(“Name=’EntryScreenServices'”).FirstOrDefault();

    configData.GeneralSetup.EntryScreenServices = view.EntryScreenServicesList.Where(x => x.Name == Convert.ToString(dr2[“Value”])).Select(x => x.EntryScreenServicesID).FirstOrDefault();

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s