示例#1
0
        private void BookSearchGridView_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int             rowIndex = e.RowIndex;
            DataGridViewRow row      = bookSearchGridView.Rows[rowIndex];
            int             bookID   = Convert.ToInt32(row.Cells[0].Value);

            try
            {
                bookIssueGridView.DataSource = SelectQueries.GetBookIssues(bookID);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }