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 !

Wim SturkenboomRank #2,527 · 554 reputationPosted Nov 28, 2014, 6:04 PM EST
In the event handler, read the values from the grid, validate and do your calculations.
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 28, 2014, 6:06 PM EST
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/
tvkswamy13 reputationPosted Nov 28, 2014, 6:38 PM EST
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 28, 2014, 6:43 PM EST
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.