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. can any body tell,how to add a table in a column of c#.net datagrid.

can any body tell,how to add a table in a column of c#.net datagrid.

Scheduled Pinned Locked Moved C#
csharptutorial
5 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.
  • S Offline
    S Offline
    s_aslam98
    wrote on last edited by
    #1

    i want to perform following functionailty from c#.net datagrid -------------------------- name address fist last -------------------------- abc df pk abc df pk -------------------------- i.e. splitting column name into two columns 'first' and 'last'. we can't span column in c#.net datagrid. can any body tell,how to add a table in a column of c#.net datagrid.

    N 1 Reply Last reply
    0
    • S s_aslam98

      i want to perform following functionailty from c#.net datagrid -------------------------- name address fist last -------------------------- abc df pk abc df pk -------------------------- i.e. splitting column name into two columns 'first' and 'last'. we can't span column in c#.net datagrid. can any body tell,how to add a table in a column of c#.net datagrid.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Override the ItemDataBound event and insert whatever controls you want.


      only two letters away from being an asset

      S 1 Reply Last reply
      0
      • N Not Active

        Override the ItemDataBound event and insert whatever controls you want.


        only two letters away from being an asset

        S Offline
        S Offline
        s_aslam98
        wrote on last edited by
        #3

        i m using c#.net not c#asp.net.can u plz tell me then what to do?

        N 1 Reply Last reply
        0
        • S s_aslam98

          i m using c#.net not c#asp.net.can u plz tell me then what to do?

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          You are confused. C# is a langauge that implements .NET Framework. ASP.NET is a platform for developing and delivering web applications. DataGrid is a control used in Web Forms and GridView is a control used in Win Forms. If you would explain clearly, with correct terminology, your chances of recieving an answer would be enhanced.


          only two letters away from being an asset

          S 1 Reply Last reply
          0
          • N Not Active

            You are confused. C# is a langauge that implements .NET Framework. ASP.NET is a platform for developing and delivering web applications. DataGrid is a control used in Web Forms and GridView is a control used in Win Forms. If you would explain clearly, with correct terminology, your chances of recieving an answer would be enhanced.


            only two letters away from being an asset

            S Offline
            S Offline
            s_aslam98
            wrote on last edited by
            #5

            sorry.i was making mistake.i want to implement this using dataGridView.now can u plz tell me? i want to add table in a column just like this bold statement.but this is for datagrid can u tel me for gridview. public void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.Header) { e.Item.Cells.RemoveAt(2); e.Item.Cells[1].ColumnSpan = 2; e.Item.Cells[1].Text = "<table style='FONT-WEIGHT: bold;WIDTH: 100%; COLOR: Black; TEXT-ALIGN: center'><tr align=center><td colspan = 2 style='BORDER-BOTTOM:cccccc 1pt solid'>Name</td></tr><tr align =center ><td style ='BORDER-RIGHT: cccccc 1pt solid'>FName</td>< td>LName</td></tr></table>"; } }

            modified on Monday, January 26, 2009 4:23 AM

            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