Is it possible to make control like this or change date time picker to something like this that has drop down lists?
Like Datagrid View having three ComboBoxes in each columns
adding combobox would not be a problem but populating datagrid view with calendar is a problem
or there is any library for that
There are quite a few scheduler controls for WPF (mostly commercial). You should be able to customize most of those to your needs by editing their templates.
http://wpfschedule.codeplex.com/ (free)
http://www.componentone.com/SuperProducts/ScheduleWPF/
http://www.telerik.com/products/wpf/scheduleview.aspx
http://www.devexpress.com/Products/NET/Controls/WPF/Scheduler/
http://www.mindscapehq.com/products/wpfelements/controls/wpf-scheduler
http://www.syncfusion.com/products/user-interface-edition/wpf/schedule
Related
In the .Net 4.0 WPF Datagrid, the edit mode of a DataGridComboBoxColumn pops up the ComboBox drop-down in a size that is not dependent on the size of the cell containing the data.
I am building a template for a cell that is somewhat like a combobox, but has features like multi-select, other controls as collaborating neighbors, etc. My editor is working nicely, except for one issue.
I've been trying to figure out how to make the editor appear in front of the DataGridCell that is being edited, and not limited to the current size of that cell, so that the control can be large enough to present content and behaviors nicely to the user. This is similar to what the drop-down of the combobox cell does in WPF data grid.
Can anyone tell me how to do that?
Thanks in advance...
ComboBoxes use Popups, you could put your control in one (presumably only when editing -> Put one in the CellEditingTemplate).
I am quite new to WPF and XAML but my background is of ASP.NET and C# so I have a vague idea of how it works.
In .net, I can use the repeater, datalist, gridview, bind to them a DataTable and output from that DataTable. I am now wanting to do the same with WPF.
Basically, I want to display simple records from a database (preferably using a DataTable as I usually work with those). The list might be something like this with two columns
1) Grey TV
2) Red car
3) Blue motorbike
I have looked around but I can't get a definitive answer on what control to use. Some people say ItemsControl and some people say DataGrid. Can anyone help me here?
Thanks in advance.
A DataGrid is used for displaying Table-like data (Per record multiple columns). An ItemsControl is used to display data using your own ItemTemplate, in which you are unlimited in how to represent the items and in what directions or alignments.
Another good useable control for you might be a ListView, which works just as a ListBox except it doesn't have any selection logic. And you can choose between four different ways of displaying your items using the View property (http://msdn.microsoft.com/en-us/library/system.windows.forms.view.aspx).
In your case I would suggest using a ListView.
To bind any items to the control, you have to set the DataContext on the UserControl or the Control itself. And then bind the ItemsSource property to a local List or Collection using the Binding markup extension (http://msdn.microsoft.com/en-us/library/ms750413.aspx). To learn more about data-binding go here:
http://msdn.microsoft.com/en-us/library/ms752347.aspx
I wanted to ask whether there's a control like a big grid calendar that we can use to manage all the appointments. Like in our cell phone we have calendar and we can save reminders, birthdays, etc. I'm looking for same thing but for the desktop & its size should be at least 600x400.
When the users clicks an individual date the details should be shown.
Is there any control like that available?
There are Calendar controls that might have a view that looks like what you need. For example
BetterCalendar - which is free, open source and pretty nice. Or you can use any of the commercial controls like the one from Infragistics.
You could use the Devexpress components - they provide a good calendar control and also a range of layout controls you could use for the appointment grid.
alt text http://www.freeimagehosting.net/uploads/e9ab873d56.png
Look at the bottom component where GroupBox is Open Work Orders. What components is this?
Looks like just an ordinary ListView, with its View property set to Details and three Columns added.
I am new to C# .NET.
Can some one help me out with the below problem:
I have a TabControl in my WindowsForm application, where the tab pages are generated dynamically. The content to be displayed on each tab would be fetched from my database. I need some kind of control (which can display the fetched data) that I can add on each tab page (which would be same for all tabs) such that I can associate some kind of event, say click, on that added control.
Can anyone tell me how to do this programmatically & write the click event for all the controls added?
Please refer the below link! You will get more detail in this regard.
Creating a tab control with a dynamic number of tabs in Visual Studio C#
I'm not sure I completely understand your problem but my initial thoughts are that you could dynamically create a datagrid or something similar for each tab that you are dynmically creating. You could then bind the datasource for the grid and then add the grid as a control to your tabpage.
Something like...
DataGridView gv = new DataGridView();
gv.DataSource = //whatever your source is
this.tabPage1.Controls.Add(gv);
You would then have all the events associated with the grid to work with.
I'm thinking data binding is going to be your best bet for displaying this information. You can create a list of objects and use a DataTemplate to format the data. You can apply the DataTemplate to a quite a few objects. I generally use the ItemsControl and ListBox
http://msdn.microsoft.com/en-us/library/ms750612.aspx
good luck