I have a simple xml as below :
I am designing a datagridview, with 3 text boxes.
1) In the first col user must only choose the product value (1,2,3,etc) otherwise throw error
2) In the second col user can enter only numbers (quantity)
3) In the third col, I want the cost x quantity auto-calculated
Any help with code/url for these 3 questions above will be useful
Please help. Thanks !
Manish Kumar ChoudharyPosted Nov 28, 2014, 11:43 PM
same code for both asp.net and windows form.
first read the first column and check the condition whatever u want. This should be the solution if i got ur question properly.
tvkswamyPosted Nov 28, 2014, 11:38 PM
Manish Kumar ChoudharyPosted Nov 28, 2014, 11:06 PM
Hi tvkswamy,
Read these links it helps you
http://www.aspsnippets.com/Articles/Read-XML-File-and-bind-it-to-GridView-in-ASPNet.aspx
http://www.c-sharpcorner.com/UploadFile/75a48f/how-to-use-xml-file-to-store-data-and-retrieve-data-using-as/
Wim SturkenboomPosted Nov 28, 2014, 11:04 PM
In the event handler, read the values from the grid, validate and do your calculations.