databound-controls

Is a dispatcher needed to change data-bound properties in WPF .Net Core 3 or newer?

我的未来我决定 提交于 2020-04-30 06:28:40
问题 A lot of examples (even from MS) use a dispatcher to update data-bound properties and a bunch of different answers could be found. Does an 'official' statement exist? Currently, I always use a dispatcher and I would only change this if I can be sure that this is an official feature and it will still work on future .Net versions. 回答1: I don't believe an official statement exists. However, it generally seems to depend on the type of update that you're doing. If you're updating a normal property

ASP.NET - Ideal Control to Display a Pivot Table

瘦欲@ 提交于 2019-12-23 04:02:29
问题 I am trying to display a tabular set of data in a databound control, but I need to pivot the table such that the individual records are table columns rather than table rows. The end result is a table with a fixed number of columns and a variable number of rows each displaying single field for all of the records like this. Due to the fact that the <tr /> tags would have to be defined for each field, rather than each record, a repeater isn't a suitable way to go about this. What I am wondering

WPF 2 ComboBox binding problem

对着背影说爱祢 提交于 2019-12-14 04:21:28
问题 I have the following problem: there is a class with a couple of string properties there is a collection of such class entities That collection is shown in tree on the left of some windows and details shown on the right. I'm binding string properties of selected node to comboboxes in details. First combobox always have the same ItemsSource but the second one ItemsSource depends on SelectedItem of the first combo... <ComboBox Grid.Column="1" SelectedIndex="0" x:Name="cbClass" Style="

Designer problem with CompositeDataBoundControl

北城余情 提交于 2019-12-11 06:44:39
问题 I have a custom class: SimpleTemplatedControl : CompositeDataBoundControl private ITemplate _itemTemplate; [PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(typeof(SimpleItem)), ] public ITemplate ItemTemplate { get { return _itemTemplate; }// get set { _itemTemplate = value; }// set } protected override int CreateChildControls( System.Collections.IEnumerable dataSource, bool dataBinding) { // } When I drop this on a webform I get such a smart tag in which I can choose a

Flex 4 Drop Down List - bound with data service, how to always keep prompt or add item at index -1 programmatically

送分小仙女□ 提交于 2019-12-10 11:43:54
问题 I have a drop down list that is bound using an HTTP data service from a database (set up through the wizard, not as a declaration). My drop down list changes the values in my datagrid and I need that "Select One" null value so that users can select everything. Here is my drop down list: <s:DropDownList id="ddlProducts" width="400" prompt="Select a Product" close="dataGridContentChanging()" creationComplete="ddlProducts_creationCompleteHandler(event)" labelField="Title"> <s:dataProvider> <s

ASP.NET - Ideal Control to Display a Pivot Table

混江龙づ霸主 提交于 2019-12-08 18:23:27
I am trying to display a tabular set of data in a databound control, but I need to pivot the table such that the individual records are table columns rather than table rows. The end result is a table with a fixed number of columns and a variable number of rows each displaying single field for all of the records like this . Due to the fact that the <tr /> tags would have to be defined for each field, rather than each record, a repeater isn't a suitable way to go about this. What I am wondering is if there are any built in ASP.NET controls that can achieve what I want. I was eying the ListView

How to set default values for data bound controls for addition in VB.NET

橙三吉。 提交于 2019-12-08 04:57:31
问题 I have a vb.net 2010 form with 22 data bound controls from two tables held in a dataset which is navigated by a bindingnavigator. This successfully adds deletes and updates. However what I need is when adding a new record I need some of the fields to be pre filled out. More specifically I have points balance fields etc which could be any value but will normally be 0 on a new customer so I want to initialise them to 0 when adding new records. I located an AddingNew event on my datasource but