Can anyone show me sample code in step by step format, the best way to connect to a database, get records and populate a datagrid with paging enabled in ASP.Net?

Thanks