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. problem at the time of edit in gridview

problem at the time of edit in gridview

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsysadmin
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.
  • P Offline
    P Offline
    prateekfgiet
    wrote on last edited by
    #1

    hi i m using asp.net when i edit any feild it will generate a error. code is <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="material_issueno" Style="position: relative;" AllowPaging="True" PageSize="20" AutoGenerateEditButton="True" OnRowEditing="GridView1_RowEditing1" CellPadding="4" ForeColor="#333333" GridLines="None"> <Columns> <asp:BoundField DataField="material_issueno" HeaderText="material_issueno" InsertVisible="False" ReadOnly="True" SortExpression="material_issueno" /> <asp:BoundField DataField="materialissue_date" HeaderText="materialissue_date" SortExpression="materialissue_date" /> <asp:BoundField DataField="qty" HeaderText="qty" SortExpression="qty" /> <asp:BoundField DataField="sno_to" HeaderText="sno_to" SortExpression="sno_to" /> <asp:BoundField DataField="sno_from" HeaderText="sno_from" SortExpression="sno_from" /> <asp:BoundField DataField="issue_to" HeaderText="issue_to" SortExpression="issue_to" /> <asp:BoundField DataField="issue_by" HeaderText="issue_by" SortExpression="issue_by" /> <asp:BoundField DataField="clientname" HeaderText="clientname" SortExpression="clientname" /> <asp:BoundField DataField="entered_by" HeaderText="entered_by" SortExpression="entered_by" /> <asp:BoundField DataField="ptypename" HeaderText="ptypename" SortExpression="ptypename" /> <asp:BoundField DataField="remarks" HeaderText="remarks" SortExpression="remarks" /> <asp:BoundField DataField="invoice" HeaderText="invoice" SortExpression="invoice" /> </Columns> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> </asp:GridView> <asp:SqlDataSou

    S 1 Reply Last reply
    0
    • P prateekfgiet

      hi i m using asp.net when i edit any feild it will generate a error. code is <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="material_issueno" Style="position: relative;" AllowPaging="True" PageSize="20" AutoGenerateEditButton="True" OnRowEditing="GridView1_RowEditing1" CellPadding="4" ForeColor="#333333" GridLines="None"> <Columns> <asp:BoundField DataField="material_issueno" HeaderText="material_issueno" InsertVisible="False" ReadOnly="True" SortExpression="material_issueno" /> <asp:BoundField DataField="materialissue_date" HeaderText="materialissue_date" SortExpression="materialissue_date" /> <asp:BoundField DataField="qty" HeaderText="qty" SortExpression="qty" /> <asp:BoundField DataField="sno_to" HeaderText="sno_to" SortExpression="sno_to" /> <asp:BoundField DataField="sno_from" HeaderText="sno_from" SortExpression="sno_from" /> <asp:BoundField DataField="issue_to" HeaderText="issue_to" SortExpression="issue_to" /> <asp:BoundField DataField="issue_by" HeaderText="issue_by" SortExpression="issue_by" /> <asp:BoundField DataField="clientname" HeaderText="clientname" SortExpression="clientname" /> <asp:BoundField DataField="entered_by" HeaderText="entered_by" SortExpression="entered_by" /> <asp:BoundField DataField="ptypename" HeaderText="ptypename" SortExpression="ptypename" /> <asp:BoundField DataField="remarks" HeaderText="remarks" SortExpression="remarks" /> <asp:BoundField DataField="invoice" HeaderText="invoice" SortExpression="invoice" /> </Columns> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> </asp:GridView> <asp:SqlDataSou

      S Offline
      S Offline
      scottgp
      wrote on last edited by
      #2

      Aren't you missing a comma after @sno_from ?

      prateekfgiet wrote:

      ,[sno_from]=@sno_from [issue_to]=@issue_to,[issue_by]=@issue_by,

      Scott

      P 1 Reply Last reply
      0
      • S scottgp

        Aren't you missing a comma after @sno_from ?

        prateekfgiet wrote:

        ,[sno_from]=@sno_from [issue_to]=@issue_to,[issue_by]=@issue_by,

        Scott

        P Offline
        P Offline
        prateekfgiet
        wrote on last edited by
        #3

        ok thanks now its working

        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