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. Datagrid [modified]

Datagrid [modified]

Scheduled Pinned Locked Moved C#
databasehelp
3 Posts 2 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.
  • Y Offline
    Y Offline
    Yonathan1111
    wrote on last edited by
    #1

    Hello everybody, I have a database that has multiple rows and columns some of the rows share for the same value of fields(columns). So I want to merge or combine these two or more rows and make invisible the line(s) found between(among) them while the others are being visible, using DataGrid. Please any of you help me. I'm in need, it's urgent. Thank you.

    modified on Tuesday, September 29, 2009 8:43 AM

    N 1 Reply Last reply
    0
    • Y Yonathan1111

      Hello everybody, I have a database that has multiple rows and columns some of the rows share for the same value of fields(columns). So I want to merge or combine these two or more rows and make invisible the line(s) found between(among) them while the others are being visible, using DataGrid. Please any of you help me. I'm in need, it's urgent. Thank you.

      modified on Tuesday, September 29, 2009 8:43 AM

      N Offline
      N Offline
      nagendrathecoder
      wrote on last edited by
      #2

      Read Data from DataBase, merge the common fileds and save data in a datatable and then assign datatable to datagrid. It would be good if you provide some code.

      Y 1 Reply Last reply
      0
      • N nagendrathecoder

        Read Data from DataBase, merge the common fileds and save data in a datatable and then assign datatable to datagrid. It would be good if you provide some code.

        Y Offline
        Y Offline
        Yonathan1111
        wrote on last edited by
        #3

        Al right, but I want to merge for rows not for columns, any way here is the code. < command = new SqlCommand("sp_query", itsConn); command.CommandType = CommandType.StoredProcedure; command.Parameters.Add("@IDNumber", SqlDbType.Int).Value = infoId; itsAdapter = new SqlDataAdapter(command); itsAdapter.Fill(itsDataSet, "Schedule"); itsDataGrid.DataSource = itsDataSet.Tables["Schedule"]; itsDataGrid.DataBind(); >

        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