Click here to Skip to main content
15,908,020 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Fileupload control in Gridview Pin
N a v a n e e t h9-Apr-08 21:12
N a v a n e e t h9-Apr-08 21:12 
GeneralRe: Fileupload control in Gridview Pin
Herman<T>.Instance10-Apr-08 4:00
Herman<T>.Instance10-Apr-08 4:00 
GeneralPoint web service client through local proxy (SoapUI Tool) Pin
rotsey9-Apr-08 16:57
rotsey9-Apr-08 16:57 
QuestionGridview columns Pin
Learning9-Apr-08 16:02
Learning9-Apr-08 16:02 
GeneralRe: Gridview columns Pin
senthilsstil9-Apr-08 20:59
senthilsstil9-Apr-08 20:59 
GeneralRe: Gridview columns Pin
senthilsstil9-Apr-08 21:06
senthilsstil9-Apr-08 21:06 
GeneralRe: Gridview columns Pin
Herman<T>.Instance9-Apr-08 21:50
Herman<T>.Instance9-Apr-08 21:50 
AnswerRe: Gridview columns Pin
Nais10-Apr-08 1:07
Nais10-Apr-08 1:07 
Hi,
One way to do this by making all the columns in the grid as template columns.

then in the RowDataBound event using FindControl() method, set the value for Total label.
<br />
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem )<br />
			{<br />
				decimal Price = Convert.ToDecimal ( ((Label)e.Item.FindControl("PriceLabel")).Text );<br />
				decimal Quantity = Convert.ToDecimal ( ((Label)e.Item.FindControl("QuantityLabel")).Text );<br />
				Label TotalLabel =  ((Label)e.Item.FindControl("TotalLabel"));<br />
				TotalLabel.Text = Convert.ToString   ( Price * Quantity);<br />
			}<br />
<br />


Where did error begin? Smile | :)


-- Naison Garvasis Pekkattil
GeneralRe: Gridview columns Pin
Learning10-Apr-08 5:30
Learning10-Apr-08 5:30 
QuestionAdjust location of a control on asp.net pages Pin
Tarik Guney9-Apr-08 11:25
Tarik Guney9-Apr-08 11:25 
GeneralRe: Adjust location of a control on asp.net pages Pin
Christian Graus9-Apr-08 11:43
protectorChristian Graus9-Apr-08 11:43 
QuestionMultiple Access Pin
Tarik Guney9-Apr-08 11:19
Tarik Guney9-Apr-08 11:19 
GeneralRe: Multiple Access Pin
Christian Graus9-Apr-08 11:21
protectorChristian Graus9-Apr-08 11:21 
GeneralRe: Multiple Access Pin
Tarik Guney9-Apr-08 11:30
Tarik Guney9-Apr-08 11:30 
GeneralRe: Multiple Access Pin
Christian Graus9-Apr-08 11:42
protectorChristian Graus9-Apr-08 11:42 
Generalconverting and updated converted pages Pin
Gus'O.9-Apr-08 11:09
Gus'O.9-Apr-08 11:09 
QuestionIs it possible to place a hyperlink within a ASP.NET textbox control? Pin
Infernojericho9-Apr-08 10:43
Infernojericho9-Apr-08 10:43 
AnswerRe: Is it possible to place a hyperlink within a ASP.NET textbox control? Pin
pmarfleet9-Apr-08 10:51
pmarfleet9-Apr-08 10:51 
GeneralRe: Is it possible to place a hyperlink within a ASP.NET textbox control? Pin
Infernojericho9-Apr-08 10:53
Infernojericho9-Apr-08 10:53 
GeneralRe: Is it possible to place a hyperlink within a ASP.NET textbox control? Pin
pmarfleet9-Apr-08 11:21
pmarfleet9-Apr-08 11:21 
GeneralCrystel Report ..Change Database Location at runtime Pin
Amr M. K.9-Apr-08 9:51
Amr M. K.9-Apr-08 9:51 
GeneralRe: Crystel Report ..Change Database Location at runtime Pin
Darsh_311-Apr-08 2:18
Darsh_311-Apr-08 2:18 
GeneralWeird behavior of FindControl Pin
AlexeiXX39-Apr-08 8:01
AlexeiXX39-Apr-08 8:01 
GeneralRe: Weird behavior of FindControl Pin
MrPlankton9-Apr-08 11:32
MrPlankton9-Apr-08 11:32 
GeneralRe: Weird behavior of FindControl Pin
AlexeiXX39-Apr-08 11:47
AlexeiXX39-Apr-08 11:47 

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.