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. General Programming
  3. C#
  4. Getting dynamic Datagrid

Getting dynamic Datagrid

Scheduled Pinned Locked Moved C#
help
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.
  • N Offline
    N Offline
    narendrakumarp
    wrote on last edited by
    #1

    Hi one & all I m wirting a code for dynamic DataGrid, in that i have a column of Date. so store procedure is exactly working but in code some what mistake , I have written the code like this myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.DateTime"); myDataColumn.ColumnName = "CreatedOn"; myDataColumn.ReadOnly = false; myDataTable.Columns.Add(myDataColumn); In for loop, i have taken as string noofre = Convert.ToString(dt.Rows[i]["CreatedOn"]); myDataRow["CreatedOn"] = noofre; myDataTable.Rows.Add(myDataRow); But i m getting some problem to retrieve this. So please kindly help me to solve this problem. Regards, Narendra +91 9885179844. Help this content to solve.

    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