Hi
I am making a page which calls a web service to fill a gridview
this is returning alot of data, and is horribly slow.
i ran the svcutil.exe on the wsdl page and it generated me the class and config
so i have a load of strongly typed objects coming back from each request to the many service functions.
i am then using LINQ to loop ar...
In my XML, it's possible for an apostrophe to appear in a node's value:
<Root>
<Sections>
<SectionA>
<Heading>Title</Heading>
<Description>This is section 'A'</Description>
</SectionA>
</Sections>
</Root>
If I have controls bound to this XML:
<asp:FormView ID="myFormView" runat="server"...
I want an OpenFileDialog to come up when a user clicks on a cell, then display the result in the cell.
It all works, except that the DataGridView displays an extra row, for adding values to the list it's bound to. The row shows up if dataGridView.AllowUserToAddNewRows == true, which is what I want. What I don't want is for the applica...
I have a SQLDataSource that is bound to a ListView control but I want to place parts of the bound record into the HTML TITLE attribute. Here is my codebehind file that I want to change so it can use Eval to construct a dynamic TITLE based on the data content:
Public Partial Class zShowAd
Inherits System.Web.UI.Page
Protected Sub Pa...
Kind of an odd question- if I'm thinking of this the wrong way please let me know. I am using an infragistics dock manager, which manages tabs as well. So I can create a TabGroupPane, and then add multiple ContentPanes, each of which has its own tab.
In each content pane, I set my viewmodel:
<ContentPane>
<viewmodels:MyViewModelFor...
I have a dropdownlist control in an edititemtemplate for a details view defined like this:
<asp:TemplateField HeaderText="Primary Use">
<EditItemTemplate>
<asp:DropDownList ID="ddlPrimaryUseEdit" runat="server" OnDataBinding="DropDownList_DataBinding"
SelectedValue='<%# Bind("PrimaryUse") %>' ToolTip="Primary Use">
<asp:List...
Hi there,
I am seriously at a loss here. The three things that will not change in this project are the fact that we are using the Entity Framework to do our data access, the fact that we want thorough unit testing and that our UI is asp.net. My question is how the hell do you make this work in Asp.net?
E.g. You can use an ObjectDataSou...
<local:CustomDataGrid Grid.Row="0" Height="200"
IsReadOnly="True" x:Name="dgCaseHistory"
AutoGenerateColumns="False">
<local:CustomDataGrid.RowDetailsTemplate>
<DataTemplate>
<Grid Background="Black" Height="{Binding ElementName=dgCaseHistory, Mode...
I have a DataGridView in my windows application, what using DataBinding (Strong-type Dataset).
My problem is the following:
I have two DataGridViewComboBoxCell. First "Project" Second "Activity".
When i change the value of the "Project" cell, then i want to change the data source of the "Activity" DataGridViewComboBoxCell.
But when it h...
Hi All!
I wanted to create a control with a TextBox and to bind TextBox.Text property with my own Dependency Property TextProp. (Some kind of experiment) However, the binding does not work! What I am doing wrong?
XAML:
<UserControl x:Class="WpfApplication1.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/20...
can any one tell me how can i add multiple DataLists that dsplays diffrent dataset values on each DataList?
actually i want the Data to be appeared on the DataList are Diffrent at diffrent action.
...
Hi;
sorry if I'm not clear, it's not really clear in my head too (especially after trying to find my way in other posts :p)
What I'm willing to do is creating DataGrids in code, with zero to numerous columns containing a button, which will call one same function but with a "parameter" (different for each column).
Here is what I got so...
I'd like to set the text of two labels to values found in a FormView on a page (whose data comes from an SQLDataSource.)
What's the best way to do this? I'm thinking of using the DataBound event for the FormView to set the label text to the value of a field in the FormView, or of using the SQLDataSource Selected event to set the labels...
I'm trying to create a series of bound columns in a RadGridView, and I'm using a template to create hyperlinks in two of the columns. Here is basically what I have:
<telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Distributor" DataContext="{Binding Distributor}" CellTemplate="{StaticResource linkTemplate}"/>
and,
<DataTe...
I think I already know the answer to my question, but I want to put it out there anyway. I have an app with a ton of command handlers, each with special logic in their CanExecute methods to enable the bound Buttons appropriately.
Now I'm in a situation where I don't want any of the logic to execute, because execution results in calls t...
I have a ListBox in Silverlight that has a list of items inside. Each item has a certain number of additional options, the availability of which depends on the each item.
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
...
I'm trying to immediately set a row to Edit mode after it is created. However, my GridViewRow has an incorrect DataItemIndex and a null DataItem...
Here's a general idea of what my code is doing: (pseudo VB code)
Protected Sub gvItems_RowCommand(....)
if (e.CommandName = 'New')
Begin
// create new empty and add it to my data ...
I'm attempting to do what I considered simple data binding between a BindingSource and a ComboBox. I run into issues when the class I am using as the DataSource of the BindingSource has a property that is an instance of a generic class.
I have the following generic class:
public class GenericClass<T>
{
public T Code { get; set; ...
Hi all,
I am trying to build a wpf application that allows the user to change the theme at runtime. What I have done so far is create a resourcedictionary with all the colors for the application defined in it and then I am binding to this dictionary in the xaml.
Below is the code I have for switching the resource dictionary:
if (Syst...
Is there an event somewhere in the Silverlight control model that is raised once an item is databound? I am binding at design time to a large amount of data and would like to display an animation until the databinding is complete.
...