Background

When you’re creating a Mobile application, the UI is very important. Your controls cannot be too small, shortcuts cannot be used, and lots of other little things. I don’t like repetition, but I do like UserControls! So let’s bring in the “TSGrid”.

TSGridSource code: Touch Screen DataGridView Control

The Code

In the attached ZIP file, you will find the source code with a simple example.

The UserControl exposes its DataGridView, so you can still use all the power of the DataGridView.

When the UserControl resizes, the up/down buttons will also resize.

An important, yet small, feature is scrolling. When the selection changes, the ScrollGrid method will be invoked. It will try to keep the selected item in the middle of the viewport.

Enjoy!