Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
Hi all,
I had witten below but i am able to calculate i need value in percentage can u guide me or send snippets

DataTable dt=new DataTable();
dt=ds.Tables[0];
DataColumn dc;
dc = new DataColumn("firt",typeof(double));
dc.Expression = "Att_na*100/Att_na+Att_low+Att_medium+Att_high";
dt1.Columns.Add(dc);
dt1.AcceptChanges();



I had wriiten express
Posted
Updated 16-Nov-14 8:45am
v2
Comments
[no name] 16-Nov-14 14:41pm    
Maybe dc.Expression = "Att_na*100/(Att_na+Att_low+Att_medium+Att_high)";

http://en.wikipedia.org/wiki/Elementary_arithmetic[^]
kingsa 16-Nov-14 15:34pm    
Thank u

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