A common scenario while using Infragistics WebDataGrid is to have an unbound column, whose cell’s value is determined at runtime in
InitializeRow event, something like
Private Sub xmyGrid_InitializeRow(ByVal sender As Object, ByVal e As GridControls.RowEventArgs) Handles xmyGrid.InitializeRow
'... some code
e.Row.Items(0).Value = SomeCalculatedData
'... some more code
This works fine if you bind the grid to a small data set (and you should!) But if, due to circumstances out of your control, you bind it to a dataset with tens of thousand of records you might be screwed. Even if you enable paging (and you most definitely should!) you may find yourself
living in a shotgun shack in a situation that changing page takes forever and eventually crashes. If you do – change the above line to
e.Row.Items(0).Text = SomeCalculatedData
note using of
.Text property, which is String, instead of
.Value which is Object. Since you’re assigning the calculated data for presentation only – no need to change underlying value – and this makes all the difference.
As far as smartwatches go – Pebble is a lot of fun. But after playing around with Watchface Generator, Canvas for Pebble and numerous other apps I wanted something more, something that only Pebble SDK could provide. A coder in me wanted to code.
Enter CloudPebble – an amazing online development environment that runs in your browser, has a full-blown C compiler and connects to your watch to run/debug compiled apps. Plus your projects are stored on the cloud and available anywhere you can get online.
Yes you program Pebble in classic C – and it’s a lot of fun. And my first real attempt at custom watchface (pictured above) is old-style flip clock, you can get it here. It is based on amazing pebble bitmap library by Gregoire Sage
Lose It! is an excellent service that helps people lose weight by monitoring calories intake. It integrates with variety of devices so I was curious if I can display my user data on Pebble smartwatch (to make sure I can have another piece of cake or not).
Unfortunately LoseIt doesn’t have a public API. There had to be another way. Continue reading →