Click here to Skip to main content
16,016,425 members

Comments by Member 11357862 (Top 31 by date)

Member 11357862 6-Jul-15 5:11am View    
I have tried this code in asp.net grid view row databound event.

double tot=0;
if (e.Row.RowType == DataControlRowType.DataRow)
{
total = total + Convert.ToDouble(GridView1.Rows[1].Cells[6].Text);
GridView1.Rows[1].Cells[7].Text = total.ToString();
}

but it shows error.
Member 11357862 6-Jul-15 2:57am View    
I have tried lag function, but its not working in sqlserver 2008
Member 11357862 6-Jul-15 1:57am View    
Yes, I need to add the balance column like I shown in the example table 2
Member 11357862 26-Jan-15 1:28am View    
Sir could u pls explain
Member 11357862 20-Jan-15 3:49am View    
Let me tell the detail of my program.This page include searching of my product details which are in database. when I type product name on textbox then corresponding details will be displayed in gridview.eg: If I type 'c' then camera,cot etc will come on gridview and I type 'ca' then camera will come on grid view. This is done by keyup function and the gridview is in update panel. So each time the update panel only update.
When I use the default button then the update panel will not work and the all page will update. so how can I solve this.