I write these code to filter some data. Then on the 11th column there the value "1" to make counter and show it on this value" lblAusenteTotal.Text".
What I need to learn?
How can I make it to counter blank or NULL line of the 11th column.
int sum = 0;
for (int i = 0; i < dvgDatas.Rows.Count; ++i)
{
sum += Convert.ToInt32(dvgDatas.Rows[i].Cells[11].Value);
lblResult.Text = " " + sum.ToString();

Pranay RanaRank #735 · 3.2K reputationPosted Feb 6, 2015, 3:30 AM EST
String.IsNullOrEmpty(Convert.ToString(dvgDatas.Rows[i].Cells[11].Value))
Mfwamba Tshimanga155 reputationPosted Feb 6, 2015, 4:00 AM EST
See what I do. Curiosly, your codes DOESNT WORKS.
Mfwamba Tshimanga155 reputationPosted Feb 6, 2015, 4:17 AM EST
VulpesRank #55 · 29.2K reputationPosted Feb 6, 2015, 10:15 AM EST
http://www.c-sharpcorner.com/Forums/Thread/284737/need-to-count-my-row.aspx