Posts

Showing posts with the label DataGridView

Showing Data in DataGridView without using database::

Sometimes we want to see the values entered in the entry form temporarily and without the querying it from database. This can be done easily by the following procedure.   Suppose, I want to enter student’s name and roll and after clicking the add button, the name and roll of the student will be shown in the datagridview box. Remember, I am not willing to use the database to show the data in the datagridview box.   I am using a desktop application. That’s why I use windows form rather than web page for inputting the values. I will describe it in several steps for your better understanding.   1.        Open your visual studio 2005 and create a new project. Name it meaningfully and place it in a suitable location in your hard drive. Remember, you have to create a windows application. 2.        A blank form will appear and you have to design it with your own. a.        Since, we want to add just 2 fields, such as a student’s Name and Roll, you have to take 2 text box fiel...