I need to implement a radio button logic(multiple possibilities, one choice) with another look and feel.
The look and feel should be similar to this:
Meaning: an image, a title and a small description, no radio button but a border for the selected one.
I want to know if you know any existing components that can do this(in c# or in devexpress library) or if I have to implement this myself.
Thank you!
This looks like a list view, not a radio box. See MSDN help here.
View.Details enumeration:
Each item appears on a separate line with further information about each item arranged in columns. The left-most column contains a small icon and label, and subsequent columns contain sub items as specified by the application. A column displays a header which can display a caption for the column. The user can resize each column at run time.
View.Tile enumeration
Each item appears as a full-sized icon with the item label and subitem information to the right of it. The subitem information that appears is specified by the application. This view is available only on Windows XP and the Windows Server 2003 family. On earlier operating systems, this value is ignored and the ListView control displays in the LargeIcon view.
With RadioButton you can set Appearance=Button, use also Image property.
I finally found the DevExpress SimpleButton components that could do such behavior
Related
I use DevExpress
I had difficulty managing. I have a GridControl and added cell navigation buttons. That's just the question, how can you implement this code?
There are 4 buttons, among which are: First entry (|<), Previous entry (<), Next entry (>), Last entry (>|). How can you programmatically write these cell movements?
An example of an Access screen, such as this navigation:
My suggestion would be to not write it yourself... use the Dev Express embedded navigator.
If you go to designer view on the grid, go to Feature Browser, Focus, Embedded Navigator and set the UseEmbeddedNavigator property to true.
You can, of course, also do this in the regular property window of your form.
Once you do that, your grid will have it:
I am creating a customized grid in windows phone. I had done with all, but I am unsuccessful in
changing the grid selected row background color. I had tried the rowbackground property and also changed rowbackground color in grid selection_changed event. But nothing helped. Grid is displaying some default color when the row is selected. I searched some forums and found xaml code but no use. Anybody help me with xaml code else programmatically?
Create a new Style / template using blend which specifies the desired colours for the selected visual state.
to do this, you are best off using Expression Blend. You should already have it installed as it comes as part of the wp7 sdk or toolkit.
In the objects and timeline select your grid.
If you can't see it add a temporary one somewhere and use that and remove it at the end.
With a grid selected, right click it and select Edit Template\Edit a Copy
Decide whether you want this to be local or reused and select appropriately.
This will then give you a copy ofthe styling that is used for this control.
Find the section VisualStateGroup - and somewhere in there you should find the Selected visual state.
Style this accordingly to what you are after.
Make sure you give this Style/template a suitable name and ensure your original grid points to this style, and it should then pick up the new selected row colour.
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).
Is there a way to make long items wrap in a .net windows forms application, I have already got LabelWrap set to true, but it doesn't work, I am using Details View Type,
Thanks
ListView doesn't allow text-wrapping.
What I usually do is set "ShowItemToolTips" property true in such cases. Then user can see the whole text a ToolTip. This is the only simple option I can see with ListView to help in this case.
If you really want to support for text-wrapping you will have to either use a third party ListView or use a DataGridView.
EDIT
If you are using VS2010, Tile View is an option for you.
With the tile view feature of the ListView control, you can provide a
visual balance between graphical and textual information. The textual
information displayed for an item in tile view is the same as the
column information defined for details view. Tile view works in
combination with either the grouping or insertion mark features in the
ListView control.
The LabelWrap property only works for icons (View types of LargeIcon or SmallIcon), not Details. As others have already answered, you have to use DataGridView or a 3rd party listview such as ObjectListView.
I have a data grid displaying results from a sql database. What I want to do is make it so that when I double click on a cell in the datagrid, a new window appears where that cell can be edited. I also would like to have all the info for that cell to be autogenerated into editable fields when the cell is double clicked. Any help or links to tutorials is appreciated. Thanks.
Try this DataGridView.CellDoubleClick Event
Did you consider using data binding? Simply put, you can bind your items list to DataGrid, and current item (eg. selected/double clicked) to your edit form's controls (TextBox, Label and whatever else you might have there).
Here are good starting points for windows forms: #1, #2. They cover problem you're facing. You can find data binding tutorials for ASP/WPF easily too, but especially first link covers entire concept pretty well.