daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var linhas = myDataGridView.Rows.Cast<DataGridViewRow>().Select(r => Convert.ToString(r.Cells["mensagem"].Value));
  2. double somaLinhas = linhas.Sum(r => r.Length * 0.02);
  3.  
  4. lblSoma.Text = string.Format(@"{0:#,##0.00}", somaLinhas);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top