Edit in the gridview

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 622 Views - Last Post: 24 April 2014 - 01:12 AM Rate Topic: -----

#16 sangeetha_s  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 94
  • Joined: 15-November 12

Re: Edit in the gridview

Posted 24 April 2014 - 12:26 AM

i changed the input then also i am getting the same error that the input string was not in a correct format.. what should i have to change
Was This Post Helpful? 0
  • +
  • -

#17 sangeetha_s  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 94
  • Joined: 15-November 12

Re: Edit in the gridview

Posted 24 April 2014 - 01:08 AM

i am getting the same error still.. someone tell how to calculate the total (quantity * price) when the edit button is clicked in the gridview.. quantity and total is an edit template with a textbox
Was This Post Helpful? 0
  • +
  • -

#18 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1010
  • View blog
  • Posts: 2,444
  • Joined: 04-October 09

Re: Edit in the gridview

Posted 24 April 2014 - 01:12 AM

Since I have no idea what you changed, how can I answer that question? And you appear to be using localization (as Excel does not output numbers with dashes in the middle unless you've changed the localization setting). What Culture are you using? You should take a look at Decimal.Parse(String, IFormatProvider) if this is the common way users will input numbers. If it's a currency input (and it appears to be so), then I'd look at Decimal.Parse Method (String, NumberStyles, IFormatProvider). Set NumberStyles to Currency and you don't have to do the replaces.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2