how to Replace null value with 0 Using C# //here we suppose that objDataTable have data collection as table now access this //datatable object. decimal j = 0; j = objDataTable.Rows[0]["Qty"] == DBNull .Value ? 0 : Convert .ToDecimal(objDataTable.Rows[0]["Qty"]); NOTE :- //if DBNull.value is null then "0 " else "your code here") // ? = then // : = else Thank You [Sumit Singh Shekhawat]
Change Visual Studio Code Explorer Size Go to FILE => Preferences => Settings => Find "Workbranch" under User Tab => Find "Edit in Setting.json" { "workbench.colorTheme" : "Monokai" , "editor.fontSize" : 13 , "window.zoomLevel" : 1 } window.zoomlevel for solution explorer Size editor.fontsize for editor font size Change according to your need Thanks content reference link: https://code.visualstudio.com/docs/getstarted/settings
Comments
Post a Comment