databinding

WPF: is data binding considerable for modal dialogs?

(I'm pretty new to WPF, so this question may seem obvious or inconsistent.) There is a requirement to edit some piece of application's underlying business data from a child modal window, and to update the data only if the user presses OK button in this window. Let's call this window SettingsDialog. In this case, is it still reasonable ...

Can you bind separate date and time fields to a single DateTime in C#?

Our interface has the date and time in separate boxes. One box for date (with a DatePicker), one box for time (as a TextBox). Is it possible to databind a single DateTime (or preferably a nullable DateTime) to these separate values? (If not, what alternatives are there?) How can this be done? ...

Trying to understand INotifyPropertyChanged

Several (newbie) questions: 1) I see a lot of public Person SelectedPerson { get; set; } I am assuming this does NOT fire a property change? So, if I want to do so, I must provide the following? private Person selectedPerson; public Person SelectedPerson { get { return this.selectedPerson; ...

Auto Updating Databinding

I have a collection of objects (List) that is bound to a datagridview. How when I add or remove an object from the collection, can it refresh the datagridview without rebinding the control? ...

How to bind TextBoxes to individual elements in a Collection

I have a class with an ObservableCollection called List and I am trying to bind to textboxes individually. I have been trying: <TextBox Text="{Binding Source=List[0], Path=Value}" /> <TextBox Text="{Binding Source=List[1], Path=Value}"/> The StringObject class is just: class StringObject { public string Value { get; set; } } Ca...

MVVM WPF databinding to a Skype-like chat?

Hey guys, I've got what I think is an interesting question: You all know and love the Skype chat interface: each message is enclosed in a bubble, with emoticons and link capabilities, as well as an avatar at the left. What is the most ideal WPF component to house each message in, if I were creating a Skype-like interface? I am using...

wpf listbox databinding

i need to fill a listbox with items one by one like the list to be filled with one item than after 1/5 sec an other item will be added to the list any ideas how this could be done (in wpf)? ...

How to bind an observable collection to an array of user controls?

Hey Databinding in WPF is great, but the moment you try make things more complex it gets exceedingly difficult to implement things. I have a collection of objects, where each object has observable properties that are bound to a user control. I would like to (ideally) simply add a new object to my collection, and have a new user contro...

How to bind items of a TabControl to an observable collection in wpf?

What is the simplest example of binding the items of a TabControl to an ObservableCollection? Each tab's content will have unique data, and indeed this data will have observableCollections of its own bound to the items components. Currently I have a user control, which I would like to set as the content of each tab as soon as it is cre...

Is this the only way we can force ObjectDataSource to…?

Greetings, 1) I assume ObjectDataSource automatically binds to data source only on first request, but not on postbacks ( else ObjectDataSource.Selecting event would be fired on postbacks also, but it isn’t): A) So only way to force ObjectDataSource to also bind on postbacks is by manually calling DataBind()? 2) Assuming DropDownL...

Databind ASP.NET List of ListItem to DropDownList issue

I've just come across this bizarre thing that I was expecting to work in a different (logical) way, but it doesn't. Is it a bug or a "feature"? So there's a DropDownList that I'm populating in the codebehind with a List of ListItem. Each new ListItem gets 2 arguments that, according to the intellisense-provided documentation, correspond...

Using Telerik Webforms Controls with ASP.NET MVC

I have been searching the web for a concrete and simple example of binding a Telerik RadComboBox with a DataSet by following the ASP.NET MVC pattern, but couldn't find out a working snippet. This DataSet is present in a Class situated in the Model folder of my project. Can anybody help me on this ? ...

.NET Databinding - Custom DataSource for a recursive tree of folders and items

Rewritten: I could use some input, suggestions, and samples from some other minds on building a databindable collection. The collection needs to provide a databindable, editable tree of items, but with a small twist: the items need to be one of two types, with each type providing slightly different characteristics. The two types of it...

How can i register a global custom editor in Spring-MVC ?

Hi, I use the following custom editor in MANY Spring-MVC controllers according to: A controller binder.registerCustomEditor(BigDecimal.class, new CustomNumberEditor(BigDecimal.class, NumberFormat.getNumberInstance(new Locale("pt", "BR"), true)); Other controller binder.registerCustomEditor(BigDecimal.class, new CustomNumberEditor(B...

Data binding and user controls

Hello, This is really bugging me, so I hope someone can help me a bit 1) Assuming page contains user control, then *Page.Page_Load* is fired prior to *UserControl.Page_Load*: a) I assume that if Page contains ObjectDataSource1 control, then ObjectDataSource1 will perform data binding prior to *UserControl.Page_Load*?! b) If that...

Prism and AnimatedTabControl

I would love to use this, but cannot for the life of me figure out how to bind items to it. I would like to see a simple example, something like Shell.xaml <Controls:AnimatedTabControl x:Name="TestTab" SelectedIndex="0" VerticalAlignment="Stretch" cal:RegionManager.RegionName="{x:Static inf:RegionNames.TestRegion}" ...

Refresh UltraGrid's GroupBy Sort on child bands when ListChanged?

I am using Infragistics 2009 vol 1. My UltraGrid is bound to a BindingList of business objects "A" having themself a BindingList property of business objects "B". It results in having two bands: one named "BindingList`1", the other one "ListOfB" thanks to the currency manager. I would like to refresh the GroupBy sort of the grid whenev...

How does automatic updating of controls work, when DataRow is updated?

When a change is made to a DataRow instance, the controls it is bound to are updated automatically. How does this work? I'd like to implement something similar for an own class that I bind to a DataGridView. ...

How to bind a CheckBox to a bool typed DbColumn that is nullable ?

In Windows Forms (.NET 2.0, Visual Studio 2005 SP1) : I have a typed DataSet, with a column which type is System.Boolean, which is nullable and which default value is DBNull. I have a Form, containing a CheckBox control that I want to bind to the prior column value. I have tried to bind the Checked property to the column via the design...

StackPanel not updating

Hello, I am having an issue with a directly bound ObservableCollection not updating a StackPanel when new items are added. Any initial items show up correctly. Only items that are added later on fail to display. XAML: <ItemsControl x:Name="ImageTable" ItemsSource="{Binding Path=SystemObjectViewItems, Converter={StaticResource UIElementW...