combobox in vb.net
how to hide or disable items in one combobox on the basis of selected item in another combobox in vb.net? ...
how to hide or disable items in one combobox on the basis of selected item in another combobox in vb.net? ...
Hi Everyone, I am hoping that this is possible and easy! As the title says, I want to specify two dates and get a data set of dates by specifying the start and end date, then be able to bind that to a DropDownList control on my page.. If it isn't possible (which is a damn shame) does anyone have recommendations or best practices for d...
Visual Studio (2005 Professional), Windows Forms application : I've got a form which contains 8 tabs, each of them containing a few dozen of controls. Each of them is bound to an element of a typed dataset. This great except for the fact that data binding errors can only be found at runtime, and are often silent. Typical case : I have t...
I have a business object, which is a composite of child objects. I am using databinding in Visual Studio 2008 to bind to controls on a Windows form. But I am getting the above error in the InitializeComponent method of the form. Lets say I have an object called ParentObject which contains a generic list, ChildListObject. The ParentObj...
Edit: Duplicate I'm new to .NET, and I've taken on a small work project, converting an existing VB6 product to a current version of VB (its either that or learning VB6!). This product is an internal desktop application (not web-based). I need to create a new tree view, that is linked to a particular table. Each row in the table ha...
I have a custom text box control which raises a routed event when its TEXT property changes. This text property is data bound to a property on our view-model object. When I place this control on a TabControl page or Expander control, it appears as if data binding only occurs when the control becomes visible for the first time, therefore...
I can get data into my TabControl but the headers have frames around them and I can't slick from tab to tab. What am I doing wrong with the XAML binding syntax on this TabControl? XAML: <StackPanel> <TabControl x:Name="TheTabControl"> <TabControl.ItemTemplate> <DataTemplate> <TabItem Header="{B...
I'm binding to a method using an ObjectDataProvider. The class which exposes this method contains an ObservableCollection of type T:INofifyChanged. My problem is that because the methods return value is dependent upon the value of it's ObservableCollection, i need the binding to be updated when the ObservableCollection changes in any w...
If I have a DataSet as a result of a SQL query, can I bind it directly to a TreeView and show the hierarchy of my data? I know I'd have to use several HierarchicalDataTemplates, but I don't know how to tell each one what data to display. If I have a 4-level hierarchy, like so: <HierarchicalDataTemplate x:Key="FirstLevelTemplate" ItemTe...
Coming from the .NET world over to Python and PyQt4. Was wondering if anyone is familiar with any functionality that would allow me to bind data to Qt widgets? For example (using sqlalchemy for data): gems = session.query(Gem).all() list = QListWidget() list.datasource = gems Is such a thing possible? ...
I'm trying to get a WPF combobox working (inside the WPFToolkit Datagrid), and I'm having trouble getting all the pieces aligned correctly. I'm using Linq to Entities, and I'm setting the overall datacontext to the results of a Linq query: private void LoadDonationGrid() { donationGrid.ItemsSource = from donations in entities.Don...
Here is the scenario: I have a winform with bound controls to a datatable populated by a db proc call. The user makes changes to the data in the form control. They click a "save" button on that form. I want to be able to detect that the data actually changed and call a proc if true. I want to do this with ADO.net, not a homegrown dir...
I am using JibX as a Java Object to XML Binding tool. With it, I want to have the following output: <?xml version="1.0" encoding="UTF-8"?> <FEAPService> <Request> <Function>aaa</Function> <SubFunction>bbb</SubFunction> <Operation>ccc</Operation> </Request> </FEAPService> But I'm getting this: <?xml version="1....
I have an EJB 3 Entity bean that has a String property annotated with: @Column(unique=true). This value is set from a JSF page. Everything works fine as long as the user does not add whitespace add the end of the input field. In that case "someName" and "someName____" are treated not unique and are stored in the database. Is there a con...
I have some UI bound to an ObservableCollection of type T where 'T' implements INotifyProperty Changed properly. The problem is i need to completely swap out the ObservableCollection at runtime since it is popluated from a SQL call. This obviously messes the whole binding up and no change notifications fire. How can i replace the s...
I have a class called IssuesView which implements INotifyPropertyChanged. This class holds an ObservableCollection<Issue> and exposes it as a DependencyProperty called Issues for consumption by Bindings. It is defined as below - public class IssuesView : DependencyObject, INotifyPropertyChanged { public Issues Issues { ...
I've been reading up on stackoverflow about checkboxes and setting their value to 1 to make them checked, but it doesn't seem to work in my case. I have a databinder eval expression that evaluates to 1 when my checkbox should be checkeed, and I've verified the generated page has at least one input checkbox with value=1 that is not displa...
I have a 4-level tree structure, defined by: <HierarchicalDataTemplate DataType="{x:Type src:Level1}" ItemsSource="{Binding Path=Level2Items}"> <TextBlock Text="{Binding Path=Level1Name}"/> </HierarchicalDataTemplate> <HierarchicalDataTemplate DataType="{x:Type src:Level2}" ItemsSource="{Binding Path=Level3Items}"> <TextBlock T...
In my quest to develop a pretty data-driven silverlight app, I seem to continually come up against some sort of race condition that needs to be worked around. The latest one is below. Any help would be appreciated. You have two tables on the back end: one is Components and one is Manufacturers. Every Component has ONE Manufacturer. ...
I want to add a DataBinding per Codebehind for a attached Property and want to show the Canvas .Leftproperty in a textbox. How do I add this property? ...