Using markup I can't get data to show in the grid:
<riacontrols:DomainDataSource x:Name="EstimatesData" QueryName="GetUserEstimates" >
<riacontrols:DomainDataSource.DataContext>
<ds:MyDomainContext />
</riacontrols:DomainDataSource.DataContext>
</riacontrols:DomainDataSource>
<datagrid:DataGrid x:Name="EstimatesGrid" ...
Hi,
I'm trying to use System.Windows.Forms.PropertyGrid.
To make a property not visible in this grid one should use BrowsableAttribute set to false.
But adding this attribute makes the property not bindable.
Example: Create a new Windows Forms project, and drop a TextBox and PropertyGrid onto Form1. Using the code below, the width of...
Hello,
I have a Textbox and a Toolbar with a button. If I'm typing in the textbox and I Click the button I want the TextBox to lose focus so the binding gets updated. I don't want to add a UpdateSourceTrigger=PropertyChanged to my TextBox. But instead when I click on the button I reset focus to the main window so what ever I'm on loses f...
Hi, I really have a big problem(stuck) with two dropdownlists inside a detailsview.
I have 4 detailsview : DdlRt,DdlRt2,ddlMobv1,ddlMobv2. Basically what happens here is that DdlRt2 gets populated when DdlRt is selected and ddlMobv2 gets populated when a specific value from ddlMobv1 is selected.
In code posted above the detailsview ha...
I have a binding that when ever I set it and try to reload the design view, Visual Studio crashes. (This is in design view in the IDE, not at runtime.)
I am looking for a work around.
Here is the binding:
<Button HorizontalAlignment="Right" x:Name="btnPick" Grid.Column="3" Style="{StaticResource roundButton}"
Width="15" Heig...
We have the following operation to be performed on the control in our WinForms application.
public class BindableDataItem
{
public bool Visible {get; set; }
public bool Enabled {get;set;}
}
Now we want to bind the BindableDataItemto a TextBox.
Here are binding association.
TextBox.Enabled <==> BindableDataItem.Enabled
TextBo...
I'm working on a Prism Composite application where I load different views into a region. I need to make sure that the view I'm loading is resized to the same height as the region. Each view is a usercontrol that has a Grid as the outer element. I'm using the following code
<Grid Height="{Binding RelativeSource={RelativeSource Find...
I have an report, in which I like to show reports about some Employees. The Employee Class contains the following attributes :
public class Employee{
public string name;
public Branch branch;
}
I have an list of employees, and I bind them to the report columns. It is showing employee name without any p...
I am trying to understand MVVM pattern and I took a sample program to work on. The model is a C# .net library which when queried returns an IList object. I want my view to be able to add/edit/delete items in this collection thru' data binding. But I don't know how to start with this, using MVVM. Please help me out.
Model exposes an inte...
I have a combo box bound to a Data Source (clientInfoBindingSource) for its selected item and text, I am using a auto generated Binding Navigator on a different Data Source (totalsBindingSource) and on
this.totalsBindingSource.CurrentChanged += new System.EventHandler(this.updateClientInfo);
it should update the current object for cli...
I am having difficulty setting an empty TextBox to null on an nullable DB Field.
XAML
<y:TextBox Text="{Binding Year1Cost, Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged,
NotifyOnValidationError=True,
ValidatesOnDataErrors=True,
ValidatesOnExceptions=True,
StringFormat=\{0:c\}}" Grid.Row="3" Grid...
I have a simple ComboBox in my Silverlight 3 application. I want to populate it from an ObservableCollection. The list holds a class that has a Name(string), and a Selected(bool) property. The combo box has as many items as I have in the list, but I cannot seem to get the list data to appear.
Any help would be appreciated.
<ComboBox...
I am working on the multifile uploader, and want to set the upload directory based on a selected questionID (which is the directory name) in my datagrid.
The code can be found here http://pastie.org/784185
Something like this:
I have set myQuestionID (the directory to upload to) so it is bindable (lines 136-137):
[Bindable] public v...
I have a windows form (net 2.0) with controls on it bound to an entity (w/ INotifyPropertyChanged) through a BindingSource..works.
On the same form I have a drop down list that is also wired up through a BindingSource..works
Here's a sample of the relevant code:
m_PlanItemLookupBindingSource.DataSource = GetBusinessLogic().RetrievePay...
Hello everyone,
I am trying to find an elegant way to validate two related TextBox values in WPF.
The Text property of each text box is bound to a public decimal property on my class which implements INotifyPropertyChanged for TwoWay binding.
I want to validate the two values such that: BiggerValue >= SmallerValue >= 0
I have succeed...
Hello All,
I need to alternate row colors in a grid, but not on every other row. I have a variable _AddDate that I can check on the GridRowBound event. If it hasn't changed, I want to apply one css class and if it has I want to apply a different class. The code I have does almost exactly what I want but I am setting the class on the row ...
i have an html table in my asp.net mvc view an i am running into some real estate issues with screen space.
I think in one area of my view i am going to have a button in a column of an html table that says "Details" which, when clicked, loads up some dialog ui. what i am trying to get my head around is that i want the fields in the d...
I am in the process of learning WPF, and am puzzled by the fact that databinding exceptions do not cause a runtime/unhandled exception.
Can anyone explain the benefits of databinding working in this way? I'm assuming that there are benefits, but so far I don't see any (disclaimer: I am just getting started with databinding).
Links to ...
i see that asp.net mvc 2 has strongly typed helped and looking initially at the way it works i think maybe i am doing something wrong in asp.net mvc 1 in terms of data binding to render the view and post back to the controller.
I often have different objects for rendering the view and posting back to the controller. is this wrong ?? It ...
Hi there
In WPF I have a collection of bool? values and I want to bind each of these to a separate checkbox programmatically. I want the bindings to be TwoWay so that changing the value of the individual item in the collection in code updates the check box and vice versa.
I have spent ages trying to figure out how to do this and I am c...