Use Same BindingSource in 2 LookUpEdit.
Can i use the same BindingSource for two DevExpress LookUpEditand while changing the first to reflect the other one while displaying different properties of the datasource? ...
Can i use the same BindingSource for two DevExpress LookUpEditand while changing the first to reflect the other one while displaying different properties of the datasource? ...
For example if I have a Name object public class Name { public string First { get; set; } public string Middle { get; set; } public string Last { get; set; } } and I have a form with 3 textboxes on it, named txtFirstName, txtMiddleName, txtLastName I want some way to automatically bind the domain object to these text boxe...
I am only two weeks into WPF so this is probably a trivial question. I have a collection "CellList" which has a few properties I would like to bind to a tooltip so when I hover over a label information from the current instance of "CellList" is displayed. How do I do that? I understand simple binding and this maybe simple binding too ...
Greetings all, I am working on redesigning my personal Web site using VS 2008 and have chosen to use LINQ to create by data-access layer. Part of my site will be a little app to help manage my budget better. My first LINQ query does successfully execute and display in a GridView, but when I try to use a RowDataBound event to work with t...
Having successfully used DataGridTextColumn a few times, I was unprepared for the difficulty I encountered using DataGridComboBoxColumn. I can bind an int field in a class to DataGridTextColumn, but I have failed completely to bind the same field to DataGridComboBoxColumn. When the screen is displayed, the DataGridTextColum contains a v...
Is it possible to get a FormView to automatically default to ReadOnly mode on the record that it has just inserted via its InsertItemTemplate? It seems like this would be somethign that should come naturally to a FormView. ...
I have a requirement in which a menu should be implemented as a treeview on the left side of a window. I know how to populate the treeview with the (menu)data (the mvvm way). But: how do i hook up each object in the treeview to an ICommand (in the Viewmodel)?? so that e.g. double clicking an object results in opening a window?? Thank...
Hi, I've create a modified version of Grails' datePicker tag. It uses exactly the same parameters as the Grails datePicker, but for some reason the Date property of the object that these parameters are bound to is not being set. This class has a property start of type Date and the parameters that are being sent are start_year start_m...
I have a UserControl which contains a ListBox. And ListBox uses another UserControl as DataTemplate. <ListBox x:Uid="SectionList" x:Name="SectionList" ItemsSource="{Binding}"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <expander:ExpanderDataTemplate/> </Grid> ...
Hi i´ve got a problem with the databinding of a combobox in a listview. i have two classes: - Transaction - Substrate the Transaction has a attribute of the Substrate and the Transactiona are saved in a Datebase. At the start of the programm i want to load all Transactions as a list and show them in a ListView. Each possibility of Subst...
In a datalist, you usually extract row data with a FindControl on a control that is assigned a value via a databind using say, Eval. What if in your datalist, there is no bind to an ASP.NET server control? It's in a datalist, "straight up", in say a table cell or on its own. You can't do a FindControl, so is it possible to extract a r...
I did quite a bit of WPF a couple of years ago but seem to have forgotten everything. Suppose I have a simple business class, say a TFS workitem. public class WorkItem { public WorkItem(string name, DateTime date) { Name = name; Date = date; } public string Name { get; set; } public DateTime Date { ...
We've been successfully using clrtype with IronPython 2.6 and Silverlight for databinding, based on the example provided by Lukás(: http://gui-at.blogspot.com/2009/11/inotifypropertychanged-and-databinding.html We create the binding when we create the datagrid columns programatically. Because we are using IronPython some of the static...
Trying to bind to a collection in WPF, I got the following to work: XAML: <toolkit:DataGrid Name="dgPeoples"/> CS: namespace DataGrid { /// <summary> /// Interaction logic for Window1.xaml /// </summary> public partial class Window1 { private readonly ObservableCollection<Person> personList = new Observab...
I have a form that binds to an ViewModel (MVVM). Inside the form I have an ItemsControl that is bound to an element called projects in my DataContext. When I do a save using a command pattern I save the item and do a retrieve then I want to rebind the ItemsControl to the Projects collection. This part doesn't seem to be working, all m...
I am Binding a TextBox with a property which is of type float. Everything works fine, I change the value in TextBox and it gets updated in property. The problem occurs when I make the TextBox blank, my property doesn't get updated, it is still having old value. Now I need to use converter in my binding to update property with default val...
hello all, i m having problems while fetching data from columns which have more than 255 characters i got such an error message: Open Client Message: Message number: LAYER = (1) ORIGIN = (4) SEVERITY = (1) NUMBER = (132) Message String: ct_fetch(): user api layer: internal common library error: The bind of result set item 3 resulted...
I am using ASP.NET MVC2 with MvcContrib.FluentHtml to do form binding. I want to bind a DateTime format to a textbox with specific datetime format. <%=this.TextBox(c => c.date_a).Class("readonly text-box") %> // PS. c.date_a is a DateTime gives me <input type="text" value="5/9/2009 12:00:00 AM" name="date_a" id="datea" class="reado...
hi - say that i have a base class called Base, that is Bindable and has a String property like this: [Bindable] public class Base { public var msg:String; } Now, there is a class called Derived: [Bindable] public class Derived extends Base { } i am trying to bind to a mxml component like this: [Bindable] private var d:Derived...
I am trying to implement some very simple Data Binding in my User Control that runs in a WinForm app. The User Control is extended like so --> public partial class ucDiagnosis : XtraUserControl, INotifyPropertyChanged Then on that User Control I have this Property --> private string m_Pets; public string Pets { ...