Archive for July, 2008
Get Max Number from Datatable using the Compute method
July 9th, 2008This is a nifty little thing I came across recently. I wanted to get the maximum value of a number field from a datatable, and learned about the Datatable’s Compute method. It’s really easy to use. The method takes two arguments – an expression argument, which is the aggregate expression you want to use (Count, Max, [...]
Gridview cell text values all Empty Strings
July 1st, 2008I spent a good part of today butting up against this problem – puzzled and Googled and experimented and Googled some more, but could not for the life of me figure it out – I kept doing exactly what the examples said I should do. But then I finally found the answer, and so thought [...]