Click here to Skip to main content
15,907,326 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Setting focus with JavaScript Pin
dptalt2-Sep-09 4:53
dptalt2-Sep-09 4:53 
AnswerRe: Setting focus with JavaScript Pin
Abhijit Jana2-Sep-09 4:35
professionalAbhijit Jana2-Sep-09 4:35 
GeneralRe: Setting focus with JavaScript Pin
Jay Royall2-Sep-09 4:42
Jay Royall2-Sep-09 4:42 
GeneralRe: Setting focus with JavaScript Pin
Abhijit Jana2-Sep-09 4:44
professionalAbhijit Jana2-Sep-09 4:44 
GeneralRe: Setting focus with JavaScript Pin
Jay Royall2-Sep-09 4:50
Jay Royall2-Sep-09 4:50 
GeneralRe: Setting focus with JavaScript Pin
Abhijit Jana2-Sep-09 4:52
professionalAbhijit Jana2-Sep-09 4:52 
GeneralRe: Setting focus with JavaScript Pin
dptalt2-Sep-09 4:52
dptalt2-Sep-09 4:52 
QuestionGetting values from dynamically created template columns in gridview Pin
bharathi somula2-Sep-09 1:05
bharathi somula2-Sep-09 1:05 
hi,

in my gridview i have some bound columns,and some template columns.and three columns dynamically added to the same gridview on the button click event.


code for dynamic created columns like this

For Each col As DataColumn In dtttt.Columns
For Each row As DataRow In dtt.Rows
If col.ColumnName = row.Item("CODE") Then
Dim customField1 As New TemplateField()
customField1.ShowHeader = True
customField1.HeaderTemplate = New Gridviewtemplate(DataControlRowType.Header, col.ColumnName, "", "label")
customField1.ItemTemplate = New Gridviewtemplate(DataControlRowType.DataRow, "", col.ColumnName, "Textbox")
DGV1.Columns.Add(customField1)
End If
Next
Next

DGV1.DataSource = dtttt
DGV1.DataBind()

but when the time of accessing the values of gridview except dynamically created template column values are not working

For i As Integer = 0 To DGV1.Rows.Count - 1
For count As Integer = 9 To DGV1.Columns.Count - 1
Try
dggrow = DGV1.Rows(i)
Select Case Incomes(Index)
Case 1
Earnings += CInt(dggrow.Cells(count).Text * Days)
Case 2
Earnings += CInt(dggrow.Cells(count).Text)
Case 3
Earnings -= CInt(dggrow.Cells(count).Text)
End Select
Catch ex As Exception
dggrow.Cells(count).Text = 0
End Try
Index += 1
Next
Next

dggrow.Cells(count).Text- here its not getting the value of dynamic created template column value.


how to access this value.anyone help me with this.this is very urgent.
AnswerASP.NET Pin
lipun2-Sep-09 0:22
lipun2-Sep-09 0:22 
GeneralRe: ASP.NET Pin
Christian Graus2-Sep-09 0:27
protectorChristian Graus2-Sep-09 0:27 
GeneralRe: ASP.NET Pin
nagendrathecoder2-Sep-09 0:28
nagendrathecoder2-Sep-09 0:28 
GeneralRe: ASP.NET Pin
Blikkies2-Sep-09 3:13
professionalBlikkies2-Sep-09 3:13 
GeneralRe: ASP.NET Pin
Abhijit Jana2-Sep-09 4:38
professionalAbhijit Jana2-Sep-09 4:38 
QuestionSharp Map on Google Map Pin
shwethaV2-Sep-09 0:15
shwethaV2-Sep-09 0:15 
Questionthree fields in single Dropdown with space Pin
rummer1-Sep-09 23:33
rummer1-Sep-09 23:33 
AnswerRe: three fields in single Dropdown with space Pin
nagendrathecoder2-Sep-09 0:10
nagendrathecoder2-Sep-09 0:10 
AnswerRe: three fields in single Dropdown with space Pin
Christian Graus2-Sep-09 0:11
protectorChristian Graus2-Sep-09 0:11 
AnswerRe: three fields in single Dropdown with space Pin
sashidhar2-Sep-09 0:13
sashidhar2-Sep-09 0:13 
QuestionDrag and drop and Ajax? Pin
AndyBrew701-Sep-09 22:55
AndyBrew701-Sep-09 22:55 
AnswerRe: Drag and drop and Ajax? Pin
Not Active1-Sep-09 23:29
mentorNot Active1-Sep-09 23:29 
QuestionProblem in passing value to popup window Pin
nagendrathecoder1-Sep-09 22:43
nagendrathecoder1-Sep-09 22:43 
AnswerRe: Problem in passing value to popup window Pin
Not Active1-Sep-09 23:34
mentorNot Active1-Sep-09 23:34 
GeneralRe: Problem in passing value to popup window Pin
nagendrathecoder2-Sep-09 0:08
nagendrathecoder2-Sep-09 0:08 
Questionhow we get only year of the system Pin
rummer1-Sep-09 22:40
rummer1-Sep-09 22:40 
AnswerRe: how we get only year of the system Pin
nagendrathecoder1-Sep-09 22:53
nagendrathecoder1-Sep-09 22:53 

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.