0
Set Button AutoPostBack property is true..
This may work for you dear?
0
Hello @Carlos there is not any error in your code but can not understand what is problem occur with you can you debug your program using break point and check where is execution of program in going on button click .........
0
when i load my form on load it behaves so
sumbalance();
totalamoutpaid();
private void sumbalance()
{
int total = 0;
for (int i = 0; i < dgFeesstructure.Rows.Count; i++)
{
for (int col = 0; 6 < dgFeesstructure.Columns.Count; col++)
total += Convert.ToInt32(dgFeesstructure.Rows[i].Cells[6].Value);
txtTotalTotalAmountpaid.Text = total.ToString();
}
}
private void totalamoutpaid()
{
int sum = 0;
for (int i = 0; i < dgFeesstructure.Rows.Count; ++i)
{
sum += Convert.ToInt32(dgFeesstructure.Rows[i].Cells[1].Value);
}
txtTotalbalance.Text = sum.ToString();
}
0
if i m write, you have written event on button but it is not fire on click . for this
try
AutoPostBack="true" while declaring button
or
Read this Link
or
show your code if given code or link not help , if it help you Mark Accept Answer