Personally, I would put the column only in the Grid itself, not in the datasource. I would create a column and bind it to an expression that is calculated based on the difference in the two dates.
How do you intend to convert a Date to a number ? Do you want to display the difference in Ticks ? On Oct 16, 9:25 am, MikaylaLouise <[EMAIL PROTECTED]> wrote: > Hello, > > I'm new to .Net development and I'm using Visual Basic. I need > someone to assist me, I'm having a problem with my grid. Among other > columns I have two (2) date columns: DateFrom and DateTo, I want to > have another column which computes the difference between the first > two dates and returns the value in a number format. Where should I > put this "other" column in the table or in the dataset? I have tried > to put it on my table with datetime as datatype and DateTo - DateFrom > as the formula. But it returns a date value. How do I modify it to > return the difference in a number format. > > Thanks, > > Mikayla --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/DotNetDevelopment You may subscribe to group Feeds using a RSS Feed Reader to stay upto date using following url <a href="http://feeds.feedburner.com/DotNetDevelopment"> http://feeds.feedburner.com/DotNetDevelopment</a> -~----------~----~----~----~------~----~------~--~---
