C# .NET - Time Table of school ... how it possible logically as well as visually in .net

Asked By Sohaib Jamil on 22-Mar-13 07:22 AM
I have project "Time Table of school". How it possible logically as well as visually in .net. it contain all teachers name and their periods. when any one absent then we enter the name of teacher or course name, highlight the absent teacher periods and then generate arrange period list and print it.
 when it highlight timetable we click on them and show all other teacher names who are free at this time.......


what controls are need in .net with c#. it will be desktop application,
plz help me how it possible, i want to make as simple as possible. 


thanks in advance.....
azad chouhan replied to Sohaib Jamil on 25-Mar-13 02:17 AM
you can use datagridview for show detail you want and you can work on this control. You have to study about datagridview. there are lots of other controls in .net which you can use like listbox, listview,combo box. Its all upon you what do you like to use
Sohaib Jamil replied to azad chouhan on 25-Mar-13 02:35 AM
datagridview one cell click event ?
how I can highlight cell ?
Sohaib Jamil replied to azad chouhan on 25-Mar-13 02:36 AM
how I can make click event on datagridview ?
azad chouhan replied to Sohaib Jamil on 26-Mar-13 04:19 AM
you can do like this

private void firstdatagridview_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
    {


        if (e.RowIndex == rowIndexToHighlight)
        {
            e.CellStyle.BackColor = Color.red;
        }


    }