As far as I know, there're 3 ways to do this:
The first way is using COM Interop to create a Excel file, then iterate over all cells to read and write data. The created file appears to be valid (true .XLS file), but it seems that Excel must installed to use this way
The second way is writing a file header (CSS style), and then iterate ...
THIS QUESTION IS NOT ABOUT HOW TO SET DEFAULT VALUE OF A WIDGET
Hello Symfonians!
I had a fundamental doubt about forms, Im putting 2 scenarios below.
I have a customModelForm that extends a modelForm.
1> If I do not specify a default value for a form field
new: field is empty
edit: field shows the value in the object
2> If I ...
I want to use SmartGWT's TreeGrid object to show hierarchical data. The data is heterogeneous, not all elements are of the same type and have the same fields. For example, I have the following data:
Home
|-Room 1
|-Room 2
|-Table
|-Chair
All objects have unique IDs. Home has no fields. Rooms have just a name. Table has a nam...
I'm looking for a SL4 equivalent to .NET 4's SetCurrentValue API, which would appear to be exactly what I need for my scenario.
In short, I'm writing an attached behavior that updates the value of a given property at appropriate times. However, I don't want it to overwrite any bindings that are set on that dependency property. I merely ...
I have found the need to collapse a given WPF element or control when it is visually empty and I'm curious whether others have come across this and if so what type of solutions have worked.
My current case is one where I have a Border control that either will have a child element or not depending on various cases. When Border.Child is n...
I found a lot of posts that dodge this topic, but none that actually addresses this case.
I have a ComboBox bound to a List<State>, where State is a business object that has Abbreviation and Name properties:
this._stateComboBox.DataSource = ((Address)this._addressBindingSource.DataSource).States;
this._stateComboBox.DisplayMember = "Ab...
Hello... I have a composite control inside a repeater and I am trying to databind its properties like so (simplified example) :
<uc1:Control ID="id" runat="server" Value='<%# Eval("value") %>
This works fine when I include the repeater inside a web user control, include that web user control inside ANOTHER web user control and then p...
Hi,
I have a Custom Canvas(DesignerCanvas), user can add some controls to this canvas. Before adding any control canvas first wraps it insdie a custom control(Designer Item) and then add that control to canvas.
This is done as in this codeproject article -
WPF Diagram Designer -
http://www.codeproject.com/KB/WPF/WPFDiagramDesigne...
I have the following class
public class LanguagingBindingSource : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public string Dummy
{
get { return String.Empty; }
set
{
PropertyChanged(this, new PropertyChangedEventArgs("Dummy"));
}
}
}
that is bound to elements in XA...
Setup
C# WinForms Application.
Summary
Binding a dictionary to a datagridview.
Updating the dictionary automatically updates the datagrid.
The datagrid does not lose focus when the update happens.
The binding works both ways (editing values in the grid updates the dictionary.
Scenario
I have a class that calculates values
based...
In my latest project, I have a ListView that is bound to an ObservableCollection. This ObservableCollection contains a number of objects of my class SongData:
public class SongData
{
public int Id { get; set; }
public string Title { get; set; }
public string Artist { get; set; }
}
These objects are filled with data derived...
I'm building a Spring MVC app with Spring 3.0.3. I have data binding of my form working just fine, but one of the form fields is a list of items. Hypothetically speaking, my form object looks like this:
public class MyForm {
private String name;
private List<String> items;
public String getName() {
return name;
...
Something is wrong with my binding. But I can't find it
I have a status type control (UserControl) that has an ItemsControl with binding that relies on a ViewModelBase object which provides list of BrokenRules, like so:
<ItemsControl ItemsSource="{Binding BrokenRules}" >
<ItemsControl.ItemTemplate>
<DataTemplate>
...
Greetings guys,
hopefully somebody has fresher eyes and can help me pinpoint the problem here, I'm trying to create a small app with prism and the MVVM pattern, everything was working nicely up to this point, my commands are firing properly with the argument, however, the TextBlock here is not binding to the CurrentUserKey property from ...
I have a ListView set up to view a number of records from a database, and therefore it is bound to an ObservableCollection of SongData:
public class SongData {
Id { get; set; }
Title { get; set; }
Artist { get; set; }
}
Now, I have an EventHandler set up with an EventSetter in order to display a new Window with some sort o...
I have a form with a ComboBox that provides a dropdownlist. On the comboBox's SelectedIndexChanged event, am running some code, but i don't want that code to run when the form loads. Unfortunately, when i load the form (before i make a selection in the combobox), SelectedIndexChanged of the combobox fires ( i think when the combobox is d...
Hi,
I wanna create a WPF treeview with data with two grouping options (radio buttons). So the data will be grouped in two different ways (2 level hierarchy), the lowest level being the actual data items, and the groups being just a way to represent the data for easier understanding. They would also be able to select items by group (chec...
I have a List of complex objects containing other objects within that I give as the data source to a gridview.(currently I'm using BoundFields for the columns). I need to bind data to the columns from the objects within at run time. How can this be done?
...
I am databinding a view to a viewmodel and am having trouble initializing a combobox to a default value. A simplification of the class I'm using in the binding is
public class LanguageDetails
{
public string Code { get; set; }
public string Name { get; set; }
public string EnglishName { get; set; }
public string DisplayName
{...
It seems like this should be simple...
I have a usercontrol that I am going to use on several tabs of a tab control. I want all instances of the usercontrol to be synchronized.
In my usercontrol I have a list of strings:
public static List<string> fonts = new List<string>() { "Arial", "Courier" };
And a ListBox:
<ListBox x:Na...