I have a combo box that I want to bind to a list of datetime objects, but I want to show the datetime objects in short time format. I'm pretty sure I need to use some form of data template for this, but I can't figure out how to bind to the datetime object's ToShortTime method within the data template.
Can someone point me in the right ...
Hi,
I'm new to winforms (using C#) and would appreciated a headsup re the winforms control/approach to use to quickly provide visual editing of my List collection. So the in-memory collection I have is below. So my requirements were basically to:
provide a means on my winform form, to allow add/view/edit of the List of ConfigFileDTO...
I am using databinding to iterate through a recordset returned from the database, and one of those recordsets is a comma separated list of items - I'm trying to use a second repeater to display each of those items as a hyperlink. So far this is the code that I have:
<asp:Repeater ID="myRepeater" runat="server" DataSource='<%# DataBinder...
Hi,
Regarding my use of a DataGridView with BindingList, I was to disable editing current rows, but allow adding new rows. The issue I have is that when I disallows edits, this seems to prevent one from adding a new row item, as when you table into the cell for this new row it does not seem to allow editing???
Know how to get around t...
I have a Silverlight DataGrid that contains a RowDetailsTemplate. The RowDetailsTemplate contains a TabControl with several TabItems. The DataGrid will be bound with items of type Contact. Contact has a property called ContactType. I would like to have several of the TabItems be hidden when ContactType is Client. Ideally I would lik...
I have a gridview... which is not using a database.
I have these 3 rows of which are fixed and when the user clicks on the add button a new row is created .
The grid view looks like this
employee department ||timeorwork ||Delete
admin |||[dropdownlist] ||[dropdownlist]
button // so this row is fixed and i
start adding a...
I have two list that I load when my app starts. The first one loads a complete set of data from the database, the second one independently loads a set of associated data from file.
Each list is loaded into a BindingSource and set as the DataSource for their respective combobox. The data is loading just fine.
The issue is that I need to...
I've recently been using data binding in c#, and while the way I am doing it is straightforward and works, it does not feel like the best way.
For example, I have a manager class, ie UserManager which has the following interface:
class UserManager
{
public IList<User> Users { get; ...}
public AddUser(...)
public RemoveUser(...)
}...
Consider a ViewModel and an View that uses it, where the DataContext is set to the VM in the code behind file. When they are both at the project namespace, the view runs without exceptions with binding statements along the lines of:
ItemsSource="{Binding Path=PrefixFilterChoices}"
where PrefixFilterChoices is a property on the VM. W...
I have a TDI, bound to an observable collection of workspaces (all based on Josh Smith's MVVM Demo). On one tab, there is a user control, also bound to an observable collection. If I switch tabs, the user control always jumps back to the 1st item.
I'm kinda desperate. I searched since 5 hours now but just I can't figure out why it does...
C# is well documented I cannot say the same about Complex Visual Components like DataGridvIew and BindingNavigator.
Each time I ask a specific question about them, there are rarely answer: it seems nobody knows better than me a beginner. So instead of trying to get specific answer I'd better try to learn the whole thing so where can I f...
I have the below mentioned method where i am binding DataSource to the combobox control.
// floorLocnList is coming from a webservice method
private void lstFloor_BindFloor(FloorLocModel[] floorLocnList)
{
this.comboBox1.DataSource = floorLocnList;
this.comboBox1.DisplayMember = "Location";
...
Hello
I have got two labels in my flex mxml component.
first one shows playheadtime of videodisplay and another is also used for same purpose. the difference is that when we are in add mode(decided from a flag variable) both should show current playheadtime using binding. but when we are in edit mode(again decided from flag) the latter ...
Hi all
I am using BeansBinding from java.net and i have a problem.
When i sync String property from my model with the (Text) property of some (jTextField) the validator does not run when i do .bind for the first time only (my validator is to check if the jtextField is not null).
While sync Float proerty from my model with the (Text) pro...
This is a similar question to How to bind a custom Enum description to a DataGrid, but in my case I have multiple properties.
public enum ExpectationResult
{
[Description("-")]
NoExpectation,
[Description("Passed")]
Pass,
[Description("FAILED")]
Fail
}
public class TestResult
{
public string TestDescriptio...
I am doing something like this in a Silverlight 3 datagrid:
for (int x = 0; x < ThisForecast.Periods.Count; x++)
{
var TextColumn = new DataGridTextColumn();
TextColumn.Header = ThisForecast.Periods[x].Name;
TextColumn.Binding = new Binding(String.Format("Periods[{0}].Quantity", x));
TextColumn.Binding.Mode = BindingMode.Two...
Hello
I have the same command that I want to use for two controls on a dialog type window. As potentially interesting background, I'm using Josh Smith's ViewModel / RelayCommand ideas, since I am new to WPF and it's the first thing I've seen that I can actually understand from a big picture point of view.
So the command is a property o...
My combobox reverts to unselected, some time later thanks to the currencyManager. The databinding for the SelectedValue does not fire its parse event, the setter for the current object's bound property never fires. There are several other properties bound to the same bindingSource for their value that work.
The comboBox below it, which...
Hello Im using WinForms, so I have two ComboBox (cboA and cboB), cboB datasource depends of witch value is previous selected on cboA, so cboA datasource comes from a DataSet called dsDB :
How can I achive this using databinding properties?
Thanks
...
I am using a DataRepeater to show data from a business objects on the screen. I am using windows forms in C# to accomplish this. The datasource is not available at compile time so I want to bind the datasource at runtime.
Here is the simplified scenario. I'm using this business class:
public class Product
{
private double _price;
...