Now you can ask questions directly to me on my new site ASPForums. Here, I will explain how to show a Grid View with various types of paging in ASP. We use C# code to bind the SQL data with a Grid View control and use the following simple steps to make your ASP. The Grid View control provides you with an easy way to display the number of items on a page without taking much space, with the help of paging. Creating Table in SQL Server Database Now create a table named Userinfo with columns User ID, User Name and Country. is executed, the event will be fired for Page Index Changed paging.Dynamic Bound Field and Template Field columns will be created and then added to Grid View after that the Grid View will be populated from database.At runtime using the On Row Data Bound event of Grid View, controls like Text Box, Button, etc.will be added to the Dynamic Template Field columns.Finally this article explains how to handle click events of dynamic Button, Link Button or Image Button that will be added to the dynamic Template Field columns and also explains how to fetch values from the dynamic Bound Field and Template Field columns when thee Buttons are clicked.To fix this, select the Form View, go to properties, create the Item Inserted event for the form and put this code in it This will cause the gridview to refresh.
I have also come across a couple of others solutions that does the same.Yes, you can parse it by every "x" caracters, but maybe it is better solution to put into header of columns to be fixed size and define wrap "true".by that option you'll get same gridview size every time and better and more clearly user interface.The one that works best is to use databind() on gridview This is the most elegant solution.As an example, lets say you have a Grid View that displays data from a table.