how to calculate a date datacolumn based on other columns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I have two columns in my datetable the first is "StartDate", second is
"EndDate".

Now, I want to add a third column called "Days Count" that retrieves the
date difference in days between the the "StartDate" and "EndDate" columns..

I think it will be solved by using the expression property but the problem
is that expression property doesn't seem to work with dates.

any suggestions??
 
thank you..

I did that.. I added two handlers for rowchanged and columnchanged events
and updated the "DaysCount" in these events. it works great till now.

BTW, how many MVP from Microsoft??

Miha Markic said:
Hi Ahmed,

I suggest you to manually fill the calculated column.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Ahmed said:
Hi all,

I have two columns in my datetable the first is "StartDate", second is
"EndDate".

Now, I want to add a third column called "Days Count" that retrieves the
date difference in days between the the "StartDate" and "EndDate"
columns..

I think it will be solved by using the expression property but the problem
is that expression property doesn't seem to work with dates.

any suggestions??
 
Back
Top