All Questions
Tagged with calculated-field c#
14 questions
0
votes
0
answers
213
views
Form for object with computed property in terms of a navigation property
Context
Here's a model class:
public class HealthRecord
{
public int Id { get; set; }
[DataType(DataType.Date)]
public DateTime Date { get; set; }
[DataType(...
0
votes
0
answers
219
views
Calculated field not displaying data-reports devexpress
I have many calculated fields in my report. I have set Datsource and datamember and given field type and dragged the field into report. On running data is not showing up.
Expression given is:
Iif([...
0
votes
1
answer
107
views
UWP - MVVM - value not updated when calculated propoerty value changes
I'm developping a UWP app based of MVVM Pattern.
I Created a View Bound to a Parent ViewModel.
Parent View Model Contains a Child ViewModel Property
Child ViewModel contains some informations, ...
0
votes
1
answer
96
views
delayed trigger for calculation with data binding
I'm very new to WPF and currently learning the concepts of data binding.
my simplified XAML code. besides my problem (below) it works fine - quick and dirty placing of objects via GUI, will be ...
0
votes
1
answer
271
views
C# LINQ Query with Calculated Field and Subquery in a Select Clause
I'm writing a LINQ query in my C# project as below but the compiler doesn't like the calculated field 'Enabled'.
It says the comparison between (a.Qtty * a.Price) and the subquery can't be done ...
1
vote
1
answer
56
views
how to use in data from oracle to calculate on C#?
I have a table in Oracle with lots of data. In the structure of:
code_value date_value value
1 20/07/2017 10.5
1 19/07/2017 11.6
2 20/07/2017 ...
-4
votes
2
answers
88
views
The Code Won't Execute all [closed]
I have the following code:
private void G1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
decimal quantity = 0, cost = 0;
decimal totalstock = 0, ...
3
votes
1
answer
5k
views
open xml sdk doesn't read/calculate excel formula cell
I have excel file that has formula =SUM(C2:C3) in cell C4. I have values 15 and 17 in cells C2 and C3 respectively. Programmatically, I want to be able to execute C4 formula and get back the value 32 (...
0
votes
1
answer
329
views
Value for calculated property only if bit value equals true
If I am going to have a page that displays Ingredients that are marked IsProduct on one page and use the Ingredient name to generate an image url value.
And then on another page use ingredients that ...
0
votes
1
answer
216
views
Custom calculated field in ListBox with databinding
I'm making my first Windows Phone 7 App and it's almost done, except for a calculated field in my listbox.
I have a single database with an id, a name, and an integer. I'm using the MVVM pattern. ...
0
votes
1
answer
680
views
Adding a property that sums the results of a query in Lightswitch 2012
I have a project using C# in Lightswitch 2012 that has the following tables:
Clients
Id - Integer
CaseID - Long Integer
FullName - String
Address - String
Tracking - TrackingItem Collection
Staff
Id -...
3
votes
1
answer
737
views
Entity framework calculated field by Expression<Func<T,V>>
I would like to create calculated fields only in .net code, without defining columns in sql.
For example in this classes:
public class Customer
{
public int Id { get; set; }
...
0
votes
1
answer
96
views
Calculating with a hidden number
Design:
ComboBox1__txtBox1__txtBox2___txtBox3
When you select a name in comboBox1 a number is called with DataBinding in txtBox1 and txtBox2.
double a1 = Convert.ToDouble(textBox1.Text);
double b1 =...
0
votes
1
answer
1k
views
Listbox.DisplayMember won't display value from calculated property
I'm using SubSonic 2.2 for my DAL and extended one of my classes with a calculated property that returns a string containing another property with indenting based on the level of the outline at which ...