Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have gridview that shows data from database table contains columns as Id,Name and Inventory.
Among this
XML
Inventory Column should contain data as like <pre lang="vb">

$50.00
Consignment
Consignment
$100.50</pre>

Here my gird has edit features if there is no currency value in Inventory column user can insert string as Consignment. For this i can store in table one static value but my problem is how to handle in codebehind(C#.net) for getting datatypes and conditions  "Consignment" string in
Posted

1 solution

You need to change Inventory column to a string data type, this should be done in the query when getting the data from the database. Convert(varchar(100),Inventory) as Inventory you may also want to add some formatting. Then in your code behind you can insert "Consignment" or do this in the query as well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900