示例#1
0
    protected void gvTransactions_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        DataTable dtnew = new DataTable();

        if (e.CommandName == "cmd_view")
        {
            int    index = Convert.ToInt32(e.CommandArgument);
            string date  = gvTransactions.DataKeys[index].Value.ToString();
            dtnew = order.GetTransactionsBasedOnDate(date);
            if (dtnew.Rows.Count > 0)
            {
                divDetailsView.Visible   = true;
                gvDetaildList.DataSource = dtnew;
                gvDetaildList.DataBind();
            }
        }
    }