Hi guys,
I have table on a database on a server, that is identical to a table on my local. I have click once application that needs to download the version of records on the server down to my local.
At the moment i have webservice that pulls back the records on the server in batches, using asp.net datasets as containers. How do i commi...
I use LINQ to query my MSSQL 2005 database. I want to show several fields of some tables in one DataGridView. The selection of a row of the DataGridView should result in showing results in another DataGridView based on a column which is not shown in any DataGridView (it is an ID attribute).
What is a good way to accomplish this?
My I...
Hello,
I have an object bound to a winform and this object implements IDataErrorInfo. I have an error provider. The problem is when a property of a a property change.
There is no problem when I change the age (ie the rules are checked and displayed/removed correctly). But when I change the job title, the error is not displayed/removed ...
I am acquiring the contents of a table to fill a dropdown box in a Flex 3 application:
<mx:ComboBox dataSource="{myList}" />
The list is populated by the contents of a database table of persons:
Public, John Q
Doe, Jane
...
The combo box, however, also needs to have some other meta-entries in it that do not come from the database:
...
I have a bunch of custom classes (NumericTextBox and NumericConverter in this case) which I used successfully without any warning or error for a while.
Now I just hit a problem where if I use the converter in the binding on the NumericTextBox inside a DataTemplate, the binding is broken.
But if I use just the NumericTextBox or just the N...
I am binding a textbox to a property on an object, and would like the property to be updated on the TextChanged event and not the default LostFocus event. How would this be done?
It would be nice if there was a property on the Binding object to designate which event should be used.
...
I've a TextBlock that looks like so:
<TextBlock Text="{Binding Name}" />
This is inside a <Canvas> with the DataContext set to MyClient which is in the ViewModel:
public Client MyClient { get; private set; } // This is a RIA Entity, hence supports INotifyPropertyChanged
public ViewModel() {
MyClient = new Client();
LoadOpera...
Background:
I have a List<T> in my ViewModel defined as...
private List<FooBar> _fooBars;
public List<FooBar> FooBars
{
get { return _fooBars; }
set
{
if (value == _fooBars) return;
_fooBars = value;
OnPropertyChanged("FooBars");
}
}
FooBar is defined as...
public class FooBar
{
public st...
How do i databind a listbox to a List that i have in the containing window's class file? I looked and there's an ItemsSource property that i can set but i'm not sure if this is what i want, nor am i sure what to set it to.
...
I have a xaml navigation page with 5 listboxes (Silverlight 3). Four of the listboxes (the status lists) bind the ItemsSource and the DataContext properties correctly but one of them does not (the master list). Whether I do the bindings in xaml or directly in the code-behind (just to test), both ItemsSource and DataContext remain null ...
I have simple issue setting a two-way databinding of a checkbox in Silverlight 3.0. It must be a no-brainer but probably I forgot my brain home today...
I defined a Model class to represent my .. 'data'. I implemented the INotifyPropertyChanged interface to enable the UI to see when the data changes.
public class Model : INotifyPropert...
How to code a converter in WPF to display four status icons in WPF, In my project I am planning to display following four status based on certain conditions
1) Red Dot icon - Unsaved data
2) Green Dot icon - Save successful
3) White Dot icon OR No icon - window has Initialized successfully and there is no unsaved data.
4) Error icon - ...
Say I have 2 tables in a database, each with 100,000's of rows in detail and 10,000's of rows in the master 5 columns each, properly indexed and related. I want to have master/detail nested gridviews. What's the fastest architecture I could design in .net to do this? The largest result set on the master could be in the thousands (usua...
I'm trying to generate this html
<a href="#" class="button" onclick="
$('#someControl').toggle('blind',
{ easing: 'easeInOutSine'}); return false;">
With my databinding expression I have
<a href="#" class="button" onclick='<%# string.Format(
"$('#{0}').{1}",
Eval("Key"),
".toggle('blind', { easing: 'easeInOutSine...
If a set of controls on a WinForm have had DataBindings created and attached at runtime, should they be removed when the Form is closed? Or will the GarbageCollecter deal with them?
...
I am having trouble using JSF just wanted to run it by so if there is anything obvious someone can spot. I have a managed bean which is giving me trouble. In my faces-config.xml I have:
<managed-bean>
<description>Info Bean</description>
<managed-bean-name>InfoBean</managed-bean-name>
<managed-bean-class>bean.InfoBean</managed-be...
I have a XAML MenuItem DataBound ItemsSource that is working fine however there is a small issue. When I view the MenuItem and there is no databound items the ParentMenu will be disabled and it appears fine without binding errors (as expected the ItemsSource is empty). If the ObservableCollection is modified and an item added, the bind...
I have a form with a DataGridView that opens a details form on a double click.
When opening the second form I set it to use the same DataSet instance as the parent form. i now want to make sure the second form is pointing at the same DataRow as the parent as well.
At first I just sent in the Position property of the parent form's Binding...
In a nutshell: I have a DataSet with multiple DataTables inside, which are connected via multiple DataRelations. I've created a form using databinding on this DataSet, and you could say it is pretty complex.
The scenarios is next: the main purpose of the form is the insertion of a new record. For it to be inserted, various parent-child ...
Has anyone successfully used extension methods in data-binding expressions?
Say I have an extension method called "GetName" attached to "MyClass".
In the code behind, I have verified this works:
MyClass myObject = new MyClass();
MyClass.GetName();
However, in a Web form, I try this:
<%@ Import Namespace="My.Namespace" %>
Then,...