In the Mentioned project, user call the method
SetInitialRow
for databinding.
The mentioned project is right. But you just need to use
Eval
Or
Bind
process for binding your data with gridview at
Page_Load
Just follow the process for Databind
<asp:TemplateField HeaderText="FirstName" >
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%# Bind("FirstName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
After that just get your data from database into
DataSet
or
DataTable
and Bind the Data with
Gridview