Example   Source
  Menu  | 
 |  Run as  
When creating a new DbNetGrid object you supply a single argument which is the ID of the HTML element that will act as the container for the grid. The object is then configured with a combination of property assigments and method invocations. The simplest implementation of DbNetGrid can be achieved by supplying just the connectionString and fromPart properties. The connectionString property is assigned an alias which relates to a full connection string defined in the web.config file. The fromPart property is assigned the name of the table or view. Supplying just these properties will create a grid that will allow you to display, search and edit (subject to the table/view containing a primary key) all columns in the table/view. For more information on creating a connection string for your own database see the help.