Is it possible to add two or more repository controls in devepxress grid control - winforms

Hey i am dealing with winform(c#) application. i am using Devexpress Grid Control.
Is it possible to have two or more repository controls in grid control column for edit purpose.
eg.. say like a textbox and combo box in a grid column.(this is possible in web application by adding item templates to the grid column)
Is this possible or any other way to get this done?

You can set the GridColumn.ColumnEdit property to specifying the editor used to edit a column's value

Related

Grid like control with cell level customization for .net

I am looking for a grid like control either WinForm or WPF.
I have collection of a array of class named PropertyInfo. This class exposes PropertyValue and PropertyType as properties. PropertyValue can be any arbitrary object.This collection of array need to be shown in grid layout , where I need to have control on each cell. For example based on PropertyType , the cell could be combobox or checkbox or hyperlink cell or even could be a readonly. So I need create cells in code-behind by iterating collection and array values in each item.
Other requirements are :
Should be a free or standard .net control.
Should be supported in .net 3.5.
Should support hosting custom control in cell to edit cell value.
Ex: Color Picker to edit color.
Should notify value change to perform extra validations like max
text length or numeric range.
Should allow to retrieve cell values which are modified.
It would be nice if cell properties like border, foreground and
background color can be defined.
In my search I came across WinForm DataGridView. This control is more suitable if data is in DataSet and combobox is available when a column type is DataGridViewComboBoxColumn. Not sure if combobox can be placed randomly in any cell via code. Another control named Sourcegrid is on codeplex. Not sure if it can full fill all above requirements. Please provide suggestions. Thanks in advance.

adding a telerik dropdown/autocomplete control to telerik asp.net mvc grid

I have a telerik MVC grid wherein I want to add one databound column. I want this column to show telerik dropdown/autocomplete control.
How can I do that?
If you want to just show the data it is easy - you define the DropDownList in the Template method of the column.
If you want your changes to affect the model and change it - you need to use EditorTemplate. Use the UIHint attribute or use the TemplateName method of the column to specify the editor. You can check this demo for such implementation.

Customising Silverlight AutoCompleteBox with multiple filtered ListBoxes

How should I go about customising the AutoCompleteBox in Silverlight so that while typing I can filter multiple Selector ListBoxes. Basically I want a Popup that contains 'n' ListBoxes vertically stacked and when I type, the filtering operates on all of them simultaneously. I can then select an item from any of the ListBoxes.
Thanks in advance for any guidance you may have.
Beks
Had to go with a custom control in the end, inheriting from Control. The control I created contains a textbox and popup that contains multiple listboxes that are updated as i type in the text box.

Subrows into a row in GridView using WPF & C#

In my gridview I need to aggregate subrows into each row, something like in p2p emule/amule application where you can do double click to each file you are downloading and then under it you can see the parts of the file from where you are downloading.
Is it possible in WPF?
Thanks.
You could do a few things:
Add some container (ie: another Grid or a StackPanel) to the Grid row. This would let you add multiple objects to the grid row. On your "double click" event, you could change the visibility to show those objects.
Use a TreeView with a HierarchicalDataTemplate, and treat this as hierarchical data. This is most likely the more "correct" approach. The Displaying Hierarchical Data sample on MSDN walks through the process of this.

Dynamically changing a WPF ListView between one that contains a GridView with column headers and another view that doesn't

I'm not quite sure how to go about this so any advice would be much appreciated.
I have a ListView whose default implementation is using with column headers. At runtime in the program I would like to be able to click on a button at runtime to change the view so that the list view loses the GridViewColumn headers and implements a new style using one of my own data template.
Then I would also like the ability to click the button and change the ListView back to a grid view with column headers.
Can anyone point me in the correct direction of how to go about this?
Thanks
Since ListView.View is dependency property, you can bind it to something on your VM via converter.
Microsoft has a sample that demonstrate how to create a ListView control that displays data in multiple view modes, which include the GridView and other custom view modes.
Search for ListView with Multiple Views Sample in the WPF Documentation Sample page.
http://archive.msdn.microsoft.com/wpfsamples
Here is a direct link to download the sample:
http://archive.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=wpfsamples&DownloadId=7766

Resources