I need any hints to help me how to apply this idea, first of all I want to do table contain a column is about week's days, it will be bind from database, maybe all days of the week or some days.
Each day has maybe one or two rows, according to the user needs, and each row has 4 columns it is fixed number, it will not change.
For example, I enter to my account, I found from Saturday to Monday in my table, each Day has one row as default, this row has 4 columns. If I want to fill Saturday I have two periods not one period, so I have to have plus button if I click on it there is a new row will be add to fill the second period, and if I save my work these two rows will related to Saturday as I added.
I hope you Understand what I want, I use C# , ASP.NET & SQL Server.
Related
I am working on a report in crystal-report which its columns are the days of month
and as you know the number of the days changes every month.
So my question is how to change the number of columns from 30 to 29
for example automatically
can you help by sending video tutorial about this?
One option is to insert a CrossTab and set the column to be the day of the month.
The CrossTab would adapt the number of columns to the data automatically.
But the question is not clear. I'm just guessing that would be a useful option.
I'm creating this function for my attendance monitoring system, now I want to have a datagridview (or if you can suggest some other way) that will show the school days based on the calendar (with out sat. and sun.)
Similar to this, the highlighted part:
As columns and it will change depending on the filter that I select in my combobox.
e.g. I selected January and only the school days of January will be the header.
I just have these 2 questions:
1. How can I make the selected days (of month selected in combobox) to headers of column.
2. what will be my datasource? should I create a database for it?
Help me out, I can't quite get the logic needed here.
So I created a datagrid view with columns that go one through ten and rows that go 1 through 5 incremented .0 1. What I want to be able to do is accept 5 user given inputs and then search the grid and if those 5 inputs are in the same row in any row, highlight that row. I'm just not sure how to get started. A point in the right direction would be great.
I need to create a time sheet for employee in datagrid view, where employee can select working hours of each day.
I want to display DataGrid in such a way that hours of day appear as columns (24 columns) and rows appear as days (30-31 depending upon month), similar to Outlook Calendar thing where we select number of hours for some event on a particular day.
So that when employee selects cells I can get work time from corresponding selected columns.
Can some one point me to direction how I can label my rows and columns with dates and time.
Use first column of DGV for the dates and another 24 columns for the 24 hours range (total 25 columns). Go to ColumnCollection to set Column HeaderText property. Have a database of 3-4 columns storing datetime, user, events, etc. When you load the database, fill DGV according to datetime column.
Use the CellClick or CellDoubleClick Event for the employees to select the cell.
Do comment if I miss something.
Is it possible to display the entire year (not month by month) in MonthCalendar control. If not is there another option or do I have to make my own control. I need to graphically display some events that happen on certain dates or in certain intervals, and I need to display them for entire year so the standard MonthCalendar's display is not applicable in this case.
Yes you can display a maximum of 12 months. Sincerly I've not worked a lot with this control but looking in the msdn in MonthCalendar Members I found the MonthCalendar.SetCalendarDimensions Method that:
Sets the number of columns and rows of months to display.
So you need to do this:
myMonthCalendarControl.SetCalendarDimensions(4, 3);
//I used 4 columns and 3 rows because the product should be not greater than 12