auto paging in DataGrid visual studio 2003

hi friends

you may have experienced that the datagrid is not showing you next set of records in a datagrid when u press “>” button so in order to make it work for you

you have to write small set of code


DataGrid_PageIndexChanged method of datagrid

If  DataGrid.CurrentPageIndex <> e.NewPageIndex()  Then
DataGrid.CurrentPageIndex = e.NewPageIndex()
DataGrid.DataSource = DataSource goes here
End If
so this will work for you
if you have any doubts just keep a comment

About kakani santosh kumar

Working as Software Engineer in Prithvi Information Solutions having 3 years of Experience in Dotnet Framework ranging from 1.1 to 3.5
This entry was posted in Articles, Database, Programming. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s