Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Gridview rendering Issue

Gridview rendering Issue

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rameez Raja
    wrote on last edited by
    #1

    Hi all i have binded data with gridview in presention point view it is working but while inserting the data to DB and iam traversing the girdview iam getting the index missing . please guide me where iam doing wrong DataTable dataTable = new DataTable(); dataTable.Columns.Add(new DataColumn("StudentID", Type.GetType("System.String"))); dataTable.Columns.Add(new DataColumn("StudentName", Type.GetType"System.String"))); dataTable.Columns.Add(new DataColumn("MajorName", Type.GetType("System.String"))); dataTable.Columns.Add(new DataColumn("StudenMarks", Type.GetType("System.Int16"))); dataTable.Rows.Add(new string[] { "1","Student1","English"}); dataTable.Rows.Add(new string[] {"2", "Student2","English"}); dataTable.Rows.Add(new string[] { "3","Student3","Hindi"}); dataTable.Rows.Add(new string[] { "4", "Student4","Hindi"}); dataTable.Rows.Add(new string[] { "5", "Student4","Hindi"}); GridView1.DataSource = dataTable; GridView1.DataBind(); AND my gridview looks like the below And on Row Data bound event i have the below code stri

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups