Beispiel #1
0
 protected void gvStockAccessory_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         //
         int prodid  = Convert.ToInt32(gvStockAccessory.DataKeys[e.Row.RowIndex].Value);
         int kioskid = Convert.ToInt32(hdnKioskID.Value);
         //
         var ins = Stocks.GetStocksByKioskID_ProdID(kioskid, prodid);
         //
         TextBox tb = (TextBox)e.Row.FindControl("tbStocks");
         tb.Style["text-align"] = "center";
         tb.Text = ins.StockIn.ToString();
     }
 }