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. dynamicall generate the rows for dataGrid urgent......

dynamicall generate the rows for dataGrid urgent......

Scheduled Pinned Locked Moved ASP.NET
databasehelp
6 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.
  • D Offline
    D Offline
    Devkranth Kishore Vanja
    wrote on last edited by
    #1

    hi to all i have a problem please suggest me the solution prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading.. prob2 : and the datagrid should consists of text boxs datgrid FOrmat ==================================== col1 remaiming columns heading from the above Query ================================== a textbox textbox textbox b textbox textbox textbox prob3: Insert into the table

    E N M 3 Replies Last reply
    0
    • D Devkranth Kishore Vanja

      hi to all i have a problem please suggest me the solution prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading.. prob2 : and the datagrid should consists of text boxs datgrid FOrmat ==================================== col1 remaiming columns heading from the above Query ================================== a textbox textbox textbox b textbox textbox textbox prob3: Insert into the table

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      prob2 I think you can use template field to solve this, just put the text box in a template field what do you mean by

      devkranth wrote:

      prob3: Insert into the table

      do you mean insert into your datagrid or insert into table in database? if database just create a button in a column then select the apporaite row

      D 1 Reply Last reply
      0
      • D Devkranth Kishore Vanja

        hi to all i have a problem please suggest me the solution prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading.. prob2 : and the datagrid should consists of text boxs datgrid FOrmat ==================================== col1 remaiming columns heading from the above Query ================================== a textbox textbox textbox b textbox textbox textbox prob3: Insert into the table

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

        devkranth wrote:

        urgent......

        :mad:

        devkranth wrote:

        prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading..

        :confused: Strange ! Do you want to make the whole rows appear at the top of grid ? For prob2 and 3 use google.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

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

          devkranth wrote:

          urgent......

          :mad:

          devkranth wrote:

          prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading..

          :confused: Strange ! Do you want to make the whole rows appear at the top of grid ? For prob2 and 3 use google.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          D Offline
          D Offline
          Devkranth Kishore Vanja
          wrote on last edited by
          #4

          hi thanks for u reply yeah i need to make whole rows to appear as datgrid

          1 Reply Last reply
          0
          • E eyeseetee

            prob2 I think you can use template field to solve this, just put the text box in a template field what do you mean by

            devkranth wrote:

            prob3: Insert into the table

            do you mean insert into your datagrid or insert into table in database? if database just create a button in a column then select the apporaite row

            D Offline
            D Offline
            Devkranth Kishore Vanja
            wrote on last edited by
            #5

            hi thanks for u reply i cannot add textbox the template column coz i need to add the texboxes for those columns which are generated by The query(in the sense Heading) Prob 3: i need to dump the values into the database Table.. i needto insert all the datagrid items to the database table

            1 Reply Last reply
            0
            • D Devkranth Kishore Vanja

              hi to all i have a problem please suggest me the solution prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading.. prob2 : and the datagrid should consists of text boxs datgrid FOrmat ==================================== col1 remaiming columns heading from the above Query ================================== a textbox textbox textbox b textbox textbox textbox prob3: Insert into the table

              M Offline
              M Offline
              meeram395
              wrote on last edited by
              #6

              Hi, For prob1, I didn't quite understand your question. I'm not sure how you can make all the rows of the query output be the headings of the datagrid. While displaying the query results, it will be displayed in the query analyser with the headings. That you can bind to the dataset and thereafter to datagrid,so the headings will display. Please correct me if I'm wrong. For prob 2, please try with the following code: A) In the HTML window, add the following code inside the datagrid declaration: AutoGenerateColumns="False" AllowPaging="True" BackColor="#C0C0FF" HorizontalAlign="Center" Height="376px"> ]]>'> ]]>' MaxLength="30"> //Days is the column header in the sql query. On the code behind, add the following code: private void dgrdEditDel_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { dgrdEditDel.EditItemIndex = e.Item.ItemIndex; FillGrid();// Function for filling the Grid } private void dgrdEditDel_CancelCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { dgrdEditDel.EditItemIndex = -1; FillGrid(); } Try the above code and let me know if you have any issues. Thanks, meeram395 :)

              Meeram395

              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