Click here to Skip to main content
15,918,596 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
alexfromto14-Jun-06 9:30
alexfromto14-Jun-06 9:30 
AnswerRe: Dynamically Generated Columns in DataGrid Pin
minhpc_bk14-Jun-06 20:10
minhpc_bk14-Jun-06 20:10 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
alexfromto15-Jun-06 8:16
alexfromto15-Jun-06 8:16 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
minhpc_bk15-Jun-06 16:47
minhpc_bk15-Jun-06 16:47 
GeneralRe: Dynamically Generated Columns in DataGrid [modified] Pin
alexfromto16-Jun-06 3:02
alexfromto16-Jun-06 3:02 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
minhpc_bk17-Jun-06 19:51
minhpc_bk17-Jun-06 19:51 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
alexfromto19-Jun-06 2:56
alexfromto19-Jun-06 2:56 
GeneralRe: Dynamically Generated Columns in DataGrid Pin
minhpc_bk19-Jun-06 10:19
minhpc_bk19-Jun-06 10:19 
Because you are using the DataBinding event to populate the grandtotalweight, so if you access this variable before the DataBind method is called (before the DataBinding event gets fired), the result is clearly 0. The quick fix is to move it after the DataBind method call:

'Try to get grand total
'txt_total_weight.Text = dgtemp.GetTotalWeight()
         
' Bind Reader (data from DB) to DataGrid
dg.DataSource = rdrItm
dg.DataBind() 
           
'Try to get grand total
txt_total_weight.Text = dgtemp.GetTotalWeight()

GeneralRe: Dynamically Generated Columns in DataGrid Pin
alexfromto19-Jun-06 11:00
alexfromto19-Jun-06 11:00 
QuestionTarget attribute of ASP:HyperLink Pin
peshawarcoder14-Jun-06 3:43
peshawarcoder14-Jun-06 3:43 
AnswerRe: Target attribute of ASP:HyperLink Pin
ToddHileHoffer14-Jun-06 4:03
ToddHileHoffer14-Jun-06 4:03 
Questionasp.net 2.0 Pin
ssamriti14-Jun-06 3:40
ssamriti14-Jun-06 3:40 
AnswerRe: asp.net 2.0 Pin
ToddHileHoffer14-Jun-06 3:53
ToddHileHoffer14-Jun-06 3:53 
QuestionDomCompareValidator Problem Pin
Praveen_S14-Jun-06 3:35
Praveen_S14-Jun-06 3:35 
AnswerRe: DomCompareValidator Problem Pin
Mircea Grelus14-Jun-06 8:42
Mircea Grelus14-Jun-06 8:42 
QuestionReapreter control problem Pin
Nagraj Naik14-Jun-06 3:34
Nagraj Naik14-Jun-06 3:34 
AnswerRe: Reapreter control problem Pin
Elina Blank14-Jun-06 4:28
sitebuilderElina Blank14-Jun-06 4:28 
GeneralRe: Reapreter control problem Pin
Nagraj Naik14-Jun-06 19:04
Nagraj Naik14-Jun-06 19:04 
GeneralRe: Reapreter control problem Pin
Elina Blank15-Jun-06 3:27
sitebuilderElina Blank15-Jun-06 3:27 
QuestionCount Visitors Pin
TheEagle14-Jun-06 3:26
TheEagle14-Jun-06 3:26 
AnswerRe: Count Visitors Pin
amaneet14-Jun-06 4:04
amaneet14-Jun-06 4:04 
GeneralRe: Count Visitors Pin
TheEagle14-Jun-06 4:15
TheEagle14-Jun-06 4:15 
AnswerRe: Count Visitors Pin
murtaza dhari14-Jun-06 6:37
murtaza dhari14-Jun-06 6:37 
GeneralRe: Count Visitors Pin
TheEagle14-Jun-06 18:26
TheEagle14-Jun-06 18:26 
Questionrename the file in vb.net 1.1 Pin
amaneet14-Jun-06 3:08
amaneet14-Jun-06 3:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.