Example #1
0
        private void frmBookList_Load(object sender, EventArgs e)
        {
            oFilterBook = ePublicVariable.eVariable.FILTER_BOOK.BOOK_TITLE;
            LoadRecords();

            foreach (DataGridViewColumn col in dgDetails.Columns)
            {
                col.SortMode = DataGridViewColumnSortMode.NotSortable;
            }
        }
Example #2
0
        private void cboSearchBy_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (cboSearchBy.Text)
            {
            case "TITLE":
                oFilterBook = ePublicVariable.eVariable.FILTER_BOOK.BOOK_TITLE;
                break;

            case "AUTHOR":
                oFilterBook = ePublicVariable.eVariable.FILTER_BOOK.BOOK_AUTHOR;
                break;

            case "CATEGORY":
                oFilterBook = ePublicVariable.eVariable.FILTER_BOOK.BOOK_CATEGORY;
                break;

            default:
                oFilterBook = ePublicVariable.eVariable.FILTER_BOOK.BOOK_TITLE;
                break;
            }
        }