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
A

Anky2011

@Anky2011
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GridView Paging
    A Anky2011

    Hi , Your Page_Load checks if it is not a postback right ? This means your code sets the DataSource property of your grid ONLY once and that is when the page loads for the first time. Please write the code "grid.DataSource = dataTable;" just before the code "grid.DataBind()" and let me know if it works. Always make it a habit to set the DataSource of a grid just before calling the DataBind() method on the grid. E.g. I would always code method like "BindPersonsData()" in my application which would be like - private void BindPersonsData() { grdPersons.DataSource = GetPersons(); grdPersons.DataBind(); } private DataTable GetPersons() { DataTable dt = new DataTable(); //logic to get data return dt; }

    ------------- Ankur - The Tech Anky Think Simple, Code Simple, Do Big

    ASP.NET css sysadmin algorithms help
  • Login

  • Don't have an account? Register

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