• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Text Values

We've now come, finally, to the most common type of data represented to the user: text values. These values are represented as the char and varchar types in SQL Server. It is, of course, trivially easy to slap a TextBox control on a form and bind its Text property to a DataColumn. You've probably already done this a hundred times in your applications.

But remember that your goals, always, are to match the users' model of what the data is in the real world, and to restrict their ability to make a mistake. Yes, you can simply put a TextBox control on the form and leave the users to their own devices. But you can do better than that, without being intrusive. We'll examine some of the techniques in this section.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint