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. Increasing the colunm length of a datagrid

Increasing the colunm length of a datagrid

Scheduled Pinned Locked Moved ASP.NET
helpcsstutorial
11 Posts 4 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.
  • P Offline
    P Offline
    Prakash_Mishra
    wrote on last edited by
    #1

    Increasing the colunm length of a datagrid HI ALL In my asp application i have data grid, problem is the column names are getting split ed into two rows suppose i want a column name as Candidata Id but in grid its diplaying Candidate Id how to increase the length of the columns PL help REgards

    Prakash Mishra(Banglore,India)

    B M N 4 Replies Last reply
    0
    • P Prakash_Mishra

      Increasing the colunm length of a datagrid HI ALL In my asp application i have data grid, problem is the column names are getting split ed into two rows suppose i want a column name as Candidata Id but in grid its diplaying Candidate Id how to increase the length of the columns PL help REgards

      Prakash Mishra(Banglore,India)

      B Offline
      B Offline
      ballameharmurali
      wrote on last edited by
      #2

      hello prakash, in Template Field take a header template and declare asp:label or textbox etc.. it will work.. ok byee Murali Murali

      P 1 Reply Last reply
      0
      • P Prakash_Mishra

        Increasing the colunm length of a datagrid HI ALL In my asp application i have data grid, problem is the column names are getting split ed into two rows suppose i want a column name as Candidata Id but in grid its diplaying Candidate Id how to increase the length of the columns PL help REgards

        Prakash Mishra(Banglore,India)

        B Offline
        B Offline
        ballameharmurali
        wrote on last edited by
        #3

        hello prakash, Do like this it will work byee murali

        1 Reply Last reply
        0
        • P Prakash_Mishra

          Increasing the colunm length of a datagrid HI ALL In my asp application i have data grid, problem is the column names are getting split ed into two rows suppose i want a column name as Candidata Id but in grid its diplaying Candidate Id how to increase the length of the columns PL help REgards

          Prakash Mishra(Banglore,India)

          M Offline
          M Offline
          Mubashir Javaid
          wrote on last edited by
          #4

          first of all check that is there some outer table width which strict the data grid to one width. If there is no reason then you can do this by applying a css class on it. Grid view header is rendered as Header You can set width as

          God Bless you. Always do good to others

          1 Reply Last reply
          0
          • B ballameharmurali

            hello prakash, in Template Field take a header template and declare asp:label or textbox etc.. it will work.. ok byee Murali Murali

            P Offline
            P Offline
            Prakash_Mishra
            wrote on last edited by
            #5

            I am using this in html part can u tell me exactly where to change i tried with the Property builder but didn't got any option to change the width so in HTML part i need to change Thanks and Regards

            Prakash Mishra(Banglore,India)

            B 1 Reply Last reply
            0
            • P Prakash_Mishra

              I am using this in html part can u tell me exactly where to change i tried with the Property builder but didn't got any option to change the width so in HTML part i need to change Thanks and Regards

              Prakash Mishra(Banglore,India)

              B Offline
              B Offline
              ballameharmurali
              wrote on last edited by
              #6

              hello , In the html that asp:datagrid .... will be there know... there see will be there in that go to template field and in that

              will be there decalre u will get the header column ok .Try like that u will get surely. ok byeee Murali

              P 1 Reply Last reply
              0
              • P Prakash_Mishra

                Increasing the colunm length of a datagrid HI ALL In my asp application i have data grid, problem is the column names are getting split ed into two rows suppose i want a column name as Candidata Id but in grid its diplaying Candidate Id how to increase the length of the columns PL help REgards

                Prakash Mishra(Banglore,India)

                N Offline
                N Offline
                N a v a n e e t h
                wrote on last edited by
                #7

                RightClick on Datagrid -> Choose Property Builder -> Goto Format Tab -> Choose Columns -> Enter Width :laugh:


                My Website | Ask smart questions

                P 3 Replies Last reply
                0
                • B ballameharmurali

                  hello , In the html that asp:datagrid .... will be there know... there see will be there in that go to template field and in that

                  will be there decalre u will get the header column ok .Try like that u will get surely. ok byeee Murali

                  P Offline
                  P Offline
                  Prakash_Mishra
                  wrote on last edited by
                  #8

                  Thanks Murli for the help Regards

                  Prakash Mishra(Banglore,India)

                  1 Reply Last reply
                  0
                  • N N a v a n e e t h

                    RightClick on Datagrid -> Choose Property Builder -> Goto Format Tab -> Choose Columns -> Enter Width :laugh:


                    My Website | Ask smart questions

                    P Offline
                    P Offline
                    Prakash_Mishra
                    wrote on last edited by
                    #9

                    Thanks a lot

                    Prakash Mishra(Banglore,India)

                    1 Reply Last reply
                    0
                    • N N a v a n e e t h

                      RightClick on Datagrid -> Choose Property Builder -> Goto Format Tab -> Choose Columns -> Enter Width :laugh:


                      My Website | Ask smart questions

                      P Offline
                      P Offline
                      Prakash_Mishra
                      wrote on last edited by
                      #10

                      One problem friend I tried the way you told but its length remains constant. I tryied with cm . px options but not working pl help

                      Prakash Mishra(Banglore,India)

                      1 Reply Last reply
                      0
                      • N N a v a n e e t h

                        RightClick on Datagrid -> Choose Property Builder -> Goto Format Tab -> Choose Columns -> Enter Width :laugh:


                        My Website | Ask smart questions

                        P Offline
                        P Offline
                        Prakash_Mishra
                        wrote on last edited by
                        #11

                        I unchecked the property wrap text with in the cell and got the result Thanks for your help Regards

                        Prakash Mishra(Banglore,India)

                        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