For the solution, I cannot use any postback methods, because this is all working through ajax. The solution need to be implemented in the asp.net code.
I have a List<WebPage> that contains a list of Links (List<Link>) and I need for all the links to bind repetitive information such as page title, id, url. Here is my current repeater.
<...
I am using VS2010 for c#. I have some data there in a table
Scores(team1,team2,battingteam,bowlingteam,score) I am using bindingSource to bind it with my listBox. The problem is that i can show only one member in DisplayMember property of listbox (e.g. team1 or team2 only). I want to do something like
team1 + " vs " + team2 + ": " + ...
I'm a starter in WPF, and there's something I can't seem to figure out.
I have a checkbox that I would like to disable when a radio button is not selected.
my current syntax is:
<CheckBox IsEnabled="{Binding ElementName=rbBoth, Path=IsChecked}">Show all</CheckBox>
So basically, I want IsEnabled to take the opposite value than the bin...
I populate a WPF tree view using data binding. Tree view items are not expanded by default.
The items in the collection the tree view binds to implement an IsExpanded property. A tree view item binds its IsExpanded property to the IsExpanded property of an item in the collection.
In an attempt to make a certain tree view item visible I...
I have to set a LinkButton's OnClientClick attribute but I don't know what this value is until the LinkButton is bound to. I'm trying to set the value when the repeater binds, but I can't workout how to get the 'boundItem/dataContext' value...
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<asp:LinkButton Text...
Hello All,
I am new to to Microsoft Expression Blend 4 and WPF. I am not finding tutorials about Data Binding for XML and also for DBs. If you have any resources, please post the it.
Thanks and regards
Harsha
...
For the solution, I cannot use any postback methods, because this is all working through ajax. The solution need to be implemented in the asp.net code.
I have a List<WebPage> that contains a list of Links (List<Link>) and I need for all the links to bind repetitive information such as page title, id, url. Here is my current repeater.
<...
This is a big issue for me. I want to write a WPF / MVVM application that fetches data from an online WCF service.
Problem is, that the fetching process must be every, say, 15 seconds (it's a time critical application).
There is an everchanging IEnumerable involved, every time I check the WCF service, I WILL get different values, becau...
I have a derived DataGridView bound to a BindingList, and the object implements iNotifyPropertyChanged.
I'd like to do the following: When my a property attached to my DataGridView is changed, I want to call a function that will update the header of one of my columns.
Basically, I want to add my OWN response to the PropertyChanged e...
Hi all,
I'm trying to bind a property of a resource object to a control (a combo...) - the thing seems to work in the designer, but it is not working at runtime.
Just using a simple page with only a button and a combo - resource section:
<UserControl.Resources>
<LinearGradientBrush x:Key="myBrush" EndPoint="1,0.5" StartPoint="0,0.5...
I have this class:
public class RateResultsSummary
{
public RateResultsSummary(string labelText, string dataText)
{
LabelText = labelText;
DataText = dataText;
}
private string _labelText;
public string LabelText
{
get { return _labelText; }
set { _labelText = value; }
}
...
Hi,
I'm currently struggling with one of the bindings I'm trying to add to my WPF project.
In the app I have a model with a bool property that cannot be used for databinding. Behind that property is a .NET remoting object that does some validation and writes the new value into the DB.
The requirement ist that the property should be dis...
I would like to do something like simple data binding in Windows Forms, but in Web Forms. So I would like to get data from a column NAME from table CATS (one row) and display in on website in text box (input type='text') and next I would like to click on "save" button to save this data to database doing an update.
Could you please give ...
Hi All,
I am using Menu control in asp.net. I am creating Menu control using xml databinding.
Here is the xml file;
<?xml version="1.0" encoding="utf-8" ?>
<Items Text="">
<Item Text="" ImgPath="./../images/home.gif" Url="" Value="Home" />
<Item Text="" ImgPath="" Url="" Value="Time Entry" >
<Item Text="" Va...
Hi,
I have a listview which I have binded (twoWay) to a datatable. The binding works fine and data is coming up properly on the listview. Now what I want to achieve is a bit complex and I am not even sure whether this can be achieved or now.
My datatable has say 15 columns, and I am showing 5 columns in the lisview. Is it possible that...
I'm new to WPF so this may be easier than it seems. I have a DataTable object that I set as the itemssource of a combobox. For each row in the DataTable I want a ComboBoxItem. For each ComboBoxItem I want to create a label for every column name and a text box for the corresponding value, in the current row, of that column. Nothing I try ...
I am working with a DataGridView filled up from a view in my database.
Being a view (maybe I'm wrong) I can't use the TableAdapter.Update() method so I need to know the altered cells from the DataGridView so I can update the values in their respective tables programatically.
Can you help me?
...
Hello,
I have an MVVM application, with a view containing two custom controls, each of which has an ItemsControl that displays the same information in different ways.
Part of the data in the ViewModel is an ObservableCollection, although it is never bound to directly:
ObservableCollection<MyObservableItem> mIncludedCollection;
In th...
I've scoured the internet and have yet to find a solution. Help me Stack-Overflow-Kenobi, you're my only hope!
So I've got this Silverlight application, right? And I have a combobox that's bound to a non-nullable database field so that it is populated on initialization with all possible values. And it's working fine in that regard.
...
I have a DataBound DropDownList that is loading fine, but i'd like to insert another item that says "--Select--" or something instead of having the first DataBound item automatically display.
Is there an easy way to do this or do I need to manually add a dummy item?
Here is my code:
MyContext fc = new MyContext ();
...