Is there any way to bind a tooltip to a datasource. Here is a simplified example of what I am trying to do.
I have a DataTable with two columns, one is a datetime the other is a varchar. This DataTable is bound to a BindingSource. That binding source has its current record bound to a label displaying the datetime column. How can I get t...
Hi iam trying to add objects into a combobox and use SelectedValue property to select and item in the combobox but it does not work, SelectedValue is still null after the assignment.
class ComboBoxItem
{
string name;
object value;
public string Name { get { return name; } }
...
I have a series of controls that are created at run-time and then added to my Silverlight application layout grid. I was wondering if there was some sort of event that I could trap AFTER data binding has occurred. I would like to do some post processing on the controls after data has been bounded from the DataContext.
I have implemented...
I have a simple program which displays a collection on a data grid. When I run the code I do not see grid displaying data. The model is
public class Person
{
public string Name;
public int Age;
public bool Sex;
}
The view model is
public class PeopleViewModel:INotifyPropertyChanged
{
List<Person> _personList;
...
Before I start, I have this code inside of a Custom Usercontrol:
private DependencyProperty _rotation = DependencyProperty.Register("Rotation", typeof(double), typeof(MyControl),
new PropertyMetadata(new PropertyChangedCallback(RotationPropertyChanged)));
public double Rotation
{
ge...
I have a DataGridView databound to BindingSource which is in turn connected to a list of objects. After the data bindings are set up I'm populating the list from the background thread (using Form.Invoke of course). The problem is that the Grid is not updated. I can see in the debugger that the BindingSource contains items and DataGridVie...
Hi.
I have scenerio like this:
I have a BindingSource, typed DataSet and a ComboBox which property SelectedValue is bound to the BindingSource. On my form a have various controls but I guess the rule working for ComboBox will be applicable to the rest controls so I am describing a simplified scenerio.
To insert a new empty row I run t...
I am getting a 'Conversion error setting value' when I try to save a record in my controller extension. The page looks the way I would expect, but when I select one or more checkboxes, it gives my that error. I'm not seeing what the error is here. Thanks for the help.
The page:
<apex:pageBlockSectionItem >
<ap...
Hi all,
Say I have a global variable INT named X. Since X is global, we can assume that anything can modify its value so it is being changed everytime.
Say I have a Label control named "label". Here's what I want to accomplish:
I want to "bind" the value of label.Text to variable X. In such a way that when variable X is changed, it w...
I am having a problem displaying an image with a web URL in a WPF user control. I have worked through all the suggestions for a similar problem asked on this site in Aug 2008 (http://stackoverflow.com/questions/20586/wpf-image-urisource-and-data-binding) but none of those suggestions have worked.
What I'd like to do is:
<Image Width="...
Hi All,
I'm getting some Xml back from a service. I would like it to be the datasource of a grid view on my aspx page. Here is a sample of the Xml
<?xml version="1.0" encoding="utf-16" ?>
<ArrayOfTripTollCompleteDC xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TripTollC...
Hi,
i have created a viewer that generates a mesh from a separate file. In this viewer I would like to be able to scale the mesh with a transform based on three sliders (x,y,z).
If i have the transform in the window-class everything goes well, the bindings in that case are as followed (slideX being the slider in XAML, width/height = sc...
I have a collection of objects stored in a CollectionViewSource and bound to a DataGrid. I want to display a 'detail view' of the object currently selected in the DataGrid. I can obtain the current object using CollectionViewSource.View.CurrentItem.
MyClass{
[IsImportant]
AProperty{}
AnotherProperty{}
[IsImportant]
...
How does one animate a ProgressBar whose Value property is databound?
<ProgressBar Height="25" Margin="5" Maximum="100" Value="{Binding CurrentProgress}">
My data source would probably "jump" from value to value, usually from user input; for example - user performs action, and the progress bar jumps 20 points. I would want to be able ...
Hi everyone,
I have an object model like this:
class Car
{
public string Manufacturer;
public int Mileage;
public ObservableCollection<Part> Parts;
}
class Part
{
public string Name;
public int Price;
}
And I want to display the total price of "all my cars" to the user. I want to accomplish this with DataBinding...
Hi,
I am trying to use MVVM light to achieve something like this. I have the following scenario:
In my Model--I have set the properties like ActivityName,Image and there is a class constructor whose is accepting 2 parameters like name and image.
Im my DataAccess--I have set the database connection and implement the required method who...
Hey all,
I have a class that returns a list of "Category" Objects. I'd like to display them along the left-hand side of the page in a listview (if that's the best way to do it, even).
The category objects have normal attributes. Title, User, NumberOfProjects. I'd like to display both the title and the number of projects in this list.
...
I'm facing the following problem:
I have a datagrid on the first tab and combobox on the second. They both are bound to the same property - FieldList (OneWay for datagrid and TwoWay for combobox).
The point is that the user needs to be able to select item from the combobox on the seconds page, but when he does such thing - the Select...
I'm not sure what the correct method or name to do what I want to do is called, or how it's implemented. My aim is to setup a client that can be updated from the server without a call to the server.
Basically, the following scenario:
Client(1) calls Web Service (GetListOfProducts)
Server returns an array (A, B, C, D) to Client(1).
Cli...
Hello All,
I'm really falling in love with the whole .Net databinding scheme... but apparently there are still a couple of gotchas out there. Let's say that my class has a member variable of type double named Susan. Well there seems to be no immediate way to bind Susan to a text box SusanText because the binding looks something like t...