Esempio n. 1
0
        protected void grdDock_SelectedIndexChanged(object sender, EventArgs e)
        {
            GridViewRow row = grdDock.SelectedRow;
            int         Id  = Convert.ToInt32(row.Cells[1].Text);

            // make an empty list of slips and fill it with a dock's empty slips
            var SlipList = SlipDockDA.GetSlips(Id);

            grdSlip.DataSource = SlipList;
            grdSlip.DataBind();
        }
Esempio n. 2
0
        protected void grdDock_SelectedIndexChanged(object sender, EventArgs e)
        {
            GridViewRow row = grdDock.SelectedRow;
            int         Id  = Convert.ToInt32(row.Cells[1].Text);

            // make an empty list of docks
            List <Slip> SlipList = new List <Slip>();

            // make a table of all docks
            SlipList           = SlipDockDA.GetSlips(Id);
            grdSlip.DataSource = SlipList;
            grdSlip.DataBind();
        }