15,907,000 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 8735045 (Top 8 by date)
Member 8735045
14-Jun-21 6:13am
View
thanks for replay ,
i have create inventory application , which one is best control for crud operation in wpf to replace datagrid
Member 8735045
23-Apr-18 7:21am
View
Thank's Richard
i checked result in my side and i am getting result proper in Result View,
if you checked both Result View and Dynamic View, i am not able to getting newShortName in Dynamic Vewi. i think Dynamic Vewi has been bind to the
grdproductitem.ItemsSource = dataList ;
that's why newShortName propert can't be created after JsonConvert.DeserializeObject<>
Member 8735045
21-Apr-18 7:31am
View
Multiple list of json
{
"orgId": 1,
"oprId": 1,
"productCode": 143654,
"stockId": 122104,
"batchId": 122104,
"rateId": 122104,
"shortName": "SME",
"batchNo": "150419",
"expiryDate": "2022-05-28",
"mrp": 60.0,
"saleRate": 60.0,
"purchaseRate": 13.74,
"quantity": 500.0,
"storeName": "Main Store",
"newMrp": null,
"newSaleRate": null,
"newExpiryDate": null,
"newShortName": null,
"createdby": null,
"status": null
},
{
"orgId": 1,
"oprId": 1,
"productCode": 143654,
"stockId": 2018030010140000053,
"batchId": 2018030010200000033,
"rateId": 122104,
"shortName": null,
"batchNo": "220",
"expiryDate": null,
"mrp": 60.0,
"saleRate": 0.0,
"purchaseRate": 13.74,
"quantity": 10.0,
"storeName": null,
"newMrp": null,
"newSaleRate": null,
"newExpiryDate": null,
"newShortName": null,
"createdby": null,
"status": null
},
I use
var jsonSettings = new JsonSerializerSettings()
{
DefaultValueHandling = DefaultValueHandling.Ignore,
Formatting = Newtonsoft.Json.Formatting.Indented,
TypeNameHandling = TypeNameHandling.All,
NullValueHandling = NullValueHandling.Include
};
but problem still remain
i trying my best
thanks for reply
Member 8735045
20-Apr-18 7:52am
View
This is my json
{
"orgId": 1,
"oprId": 1,
"productCode": 143654,
"stockId": 122104,
"batchId": 122104,
"rateId": 122104,
"shortName": "SME",
"batchNo": "150419",
"expiryDate": "2022-05-28",
"mrp": 60.0,
"saleRate": 60.0,
"purchaseRate": 13.74,
"quantity": 500.0,
"storeName": "Main Store",
"newMrp": null,
"newSaleRate": null,
"newExpiryDate": null,
"newShortName": null,
"createdby": null,
"status": null
}
But only get not null value like "mrp": 60.0, "saleRate": 60.0
and "newSaleRate": null, this are not convert
Member 8735045
20-Apr-18 5:18am
View
if
var datalist = JsonConvert.DeserializeObject<List<expandoobject>>(jsonResult, converter);
object is property value is null that time ExpandoObject can not be DeserializeObject
what we are missing
Member 8735045
20-Apr-18 5:16am
View
Deleted
if
var datalist = JsonConvert.DeserializeObject<List<expandoobject>>(jsonResult, converter);
object is property value is null that time ExpandoObject can not be DeserializeObject
what we are missing
Member 8735045
20-Apr-18 4:36am
View
I want to this ,
thanks Richard.
var grdfeatchobjlist =grdproductitem.ItemsSource.OfType<expandoobject>().Select((dynamic x) => x);
long StockId = Convert.ToInt64(stockId.Text);
(from u in grdfeatchobjlist where u.stockId == StockId select u).ToList()
.ForEach(u => {
u.newExpiryDate = Convert.ToDateTime(Txtexpierydate.Text).ToString("yyyy-MM-dd");
u.newSaleRate = Txtnewretailmerp.Text;
u.newMrp = Txtnewretailmerp.Text;
u.purchaseRate = Txtnewpurchasemrp.Text;
u.Status = "Yes";
u.createdby = LoginUserDetails.loginUserName.ToString();
});
Member 8735045
20-Apr-18 2:37am
View
Thank's for comment Richard , i try to use this
Show More