steps to follow for browsing this demo :

step 1 :
create a dataBase named : "test1", then execute the following script using "SQL Server management studio" program :
//////////////////////////////////////////////////

USE [test1]
GO


SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[tblTest](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[item] [nvarchar](50) NULL,
	[price] [nvarchar](50) NULL,
	[quantity] [nvarchar](50) NULL,
 CONSTRAINT [PK_tblTest] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO




////////////////////////////////////////////////////////////////////

step 2 :
copy the current "gridview" directory to a new webSite created in visual studio.net , then browse "test1.aspx" and "insert.aspx" pages at the same time and then insert a new row to database using "insert.aspx" and switch immediately to "test1.aspx" in your browser ( firefox [recommended] or ie 6 or above) to see the new rows added to the gridview without any refresh of the page
 