grid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalini166
    New Member
    • Apr 2008
    • 70

    grid

    when i run the webpage with datagrid(edit command) , then it expand the column width.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by shalini166
    when i run the webpage with datagrid(edit command) , then it expand the column width.
    I don't understand what you're having problems with.
    Could you please provide more information about what you are trying to do and what is not working.

    Thanks

    -Frinny

    Comment

    • shalini166
      New Member
      • Apr 2008
      • 70

      #3
      hi

      i used datagrid with edit command it is in normal size. when i click the edit command at run time it will expand with update and cancel , then the datagrid width of each column is expanded it seems webpage itself expand.

      Comment

      • shalini166
        New Member
        • Apr 2008
        • 70

        #4
        I download free template and i dont know how to insert into asp.net

        Comment

        • shalini166
          New Member
          • Apr 2008
          • 70

          #5
          how to delete the rows in datagrid using c# code

          Comment

          • Shashi Sadasivan
            Recognized Expert Top Contributor
            • Aug 2007
            • 1435

            #6
            Originally posted by shalini166
            how to delete the rows in datagrid using c# code
            Your datagrid will be binding to a datasource. If the datasource has a delete command defined then you can enable deleting of the datagrid. Else if you can extract the selected row and delete the row from the underlaying datasource and rebind the datagrid, then that will do the job.

            Comment

            • shalini166
              New Member
              • Apr 2008
              • 70

              #7
              I have a datagrid that displays certain pieces of information.

              I have an edit command associated with the datagrid. When I click on it, it expands the datagrid lenght wise to almost 3 times the original size. Basically it sets up a input box. Is there a way to Limit the size of each box so that it doesnt expand so much?

              Comment

              • shalini166
                New Member
                • Apr 2008
                • 70

                #8
                I have a datagrid that displays certain pieces of information.

                I have an edit command associated with the datagrid. When I click on it, it expands the datagrid lenght wise to almost 3 times the original size. Basically it sets up a input box. Is there a way to Limit the size of each box so that it doesnt expand so much?

                Comment

                • Frinavale
                  Recognized Expert Expert
                  • Oct 2006
                  • 9749

                  #9
                  Originally posted by shalini166
                  I have a datagrid that displays certain pieces of information.

                  I have an edit command associated with the datagrid. When I click on it, it expands the datagrid lenght wise to almost 3 times the original size. Basically it sets up a input box. Is there a way to Limit the size of each box so that it doesnt expand so much?
                  Try setting the width's of your columns so that they don't change while editing.

                  eg:
                  [code=asp]
                  <asp:GridView ID="MyGridView " runat="server" Width="800px">
                  <Columns>
                  <asp:BoundFie ld HeaderText="A" DataField="A">
                  <ItemStyle Width="25%x" />
                  </asp:BoundField>

                  <asp:BoundFie ld HeaderText="B" DataField="B">
                  <ItemStyle Width="25%" />
                  </asp:BoundField>

                  <asp:BoundFie ld HeaderText="C" DataField="C">
                  <ItemStyle Width="25%" />
                  </asp:BoundField>

                  <asp:BoundFie ld HeaderText="D" DataField="D">
                  <ItemStyle Width="25%" />
                  </asp:BoundField>
                  </Columns>
                  </aspGridView>
                  [/code]

                  Also, check out the article on how to make all the row height's the same in a DataGrid...apply the information there to your column width's instead.

                  -Frinny

                  Comment

                  • shalini166
                    New Member
                    • Apr 2008
                    • 70

                    #10
                    I design the webpage using div command. it is static. if suppose i include datagrid by clicking any button.webpage increase by div command does not increase. pls help me

                    Comment

                    • Frinavale
                      Recognized Expert Expert
                      • Oct 2006
                      • 9749

                      #11
                      Originally posted by shalini166
                      I design the webpage using div command. it is static. if suppose i include datagrid by clicking any button.webpage increase by div command does not increase. pls help me
                      Please post your asp code for your aspx page.
                      (Please remember to use [code] tags when posting code)

                      -Frinny

                      Comment

                      Working...