I am displaying some of my fields from the database in to textboxes using datareader and bind it with gridview to display the rest of my fields using gridviw control ,however,The first row is missing from the gridview.Is this because the datareader already read the first row and when i bind it with the gridview it starts with the second row.How can i fix this problem?I am thinking to re-create datareader and bind it with gridview.can someone help me if i am doing it the right way. thanks
ItemReader1 = cmdItem.ExecuteReader()
ItemReader1.Read()
rtNumber.Text = ItemReader1("Route Number").ToString()
spNumber.Text = ItemReader1("S.P. Number").ToString()
cntId.Text = ItemReader1("contid").ToString()
txtLocation.Text = ItemReader1("loc").ToString()
lblCounty.Text = ItemReader1("County Name").ToString()
ItemReader1 = cmdItem.ExecuteReader()
ItemReader1.Read()
rtNumber.Text = ItemReader1("Route Number").ToString()
spNumber.Text = ItemReader1("S.P. Number").ToString()
cntId.Text = ItemReader1("contid").ToString()
txtLocation.Text = ItemReader1("loc").ToString()
lblCounty.Text = ItemReader1("County Name").ToString()