Click here to Skip to main content
15,886,689 members

Comments by Member 13044689 (Top 42 by date)

Member 13044689 4-Apr-17 7:28am View    
it doesn't matter what value in it maybe will be empty or not but the problem that how can i sum using 2 dot value

ex: suppose val1 = 2,050,000
val2 = 3,000,000
sum = 5,050,000 ----------> but there is no value appear at sum col

and yes its working good when i try any numbers with 1 dot value so can u help?
Member 13044689 4-Apr-17 6:06am View    
actually this is code to sum between columns and double.parse not working some help

if (e.Row.RowType == DataControlRowType.DataRow)
{
if ((e.Row.RowState & DataControlRowState.Edit) > 0)
{
string val1 = e.Row.Cells[13].Text;
string val2 = e.Row.Cells[14].Text;
string val3 = e.Row.Cells[15].Text;
string val4 = e.Row.Cells[16].Text;
Label lblTotal = (Label)e.Row.Cells[12].FindControl("Label20");
float _val1, _val2, _val3, _val4;

float.TryParse(val1, out _val1);
float.TryParse(val2, out _val2);
float.TryParse(val3, out _val3);
float.TryParse(val4, out _val4);
float sum = _val1 + _val2 + _val3 + _val4;
lblTotal.Text += sum.ToString();


the total column not show the number
Member 13044689 30-Mar-17 9:20am View    
Y but its only 1 Guy use, thx any way
Member 13044689 30-Mar-17 9:04am View    
well why this website is here when u can ask and just the other respond without any help and just 1 line description idk really
Member 13044689 30-Mar-17 8:51am View    
then how can i show the image because its not show the image