Click here to Skip to main content
15,886,864 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Auto Fill Grid Pin
HemJoshi29-Sep-08 2:43
HemJoshi29-Sep-08 2:43 
AnswerRe: Auto Fill Grid Pin
ednrg1-Oct-08 3:50
ednrg1-Oct-08 3:50 
QuestionA generic error occurred in GDI+ Pin
mehrdadc4829-Sep-08 0:04
mehrdadc4829-Sep-08 0:04 
QuestionGridview page change is affecting sessions Pin
eyeseetee28-Sep-08 22:44
eyeseetee28-Sep-08 22:44 
AnswerRe: Gridview page change is affecting sessions Pin
simsen29-Sep-08 0:37
simsen29-Sep-08 0:37 
GeneralRe: Gridview page change is affecting sessions Pin
eyeseetee29-Sep-08 0:53
eyeseetee29-Sep-08 0:53 
AnswerRe: Gridview page change is affecting sessions Pin
eyeseetee29-Sep-08 1:18
eyeseetee29-Sep-08 1:18 
Questionhow to get the grid items??? Pin
sarala.s28-Sep-08 22:34
sarala.s28-Sep-08 22:34 
hi friends,

fine and hope u so..

i am trying to include checkbox in the datagrid...

this is my coding


CheckBox chkbox = new CheckBox();
TextBox txtbox= new TextBox();
foreach(DataGridItem item in DGSample.items )
{ chkbox=(CheckBox)item.FindControl("chkbox");
txtbox=(TextBox)item.FindControl("txtbox");
if(chkbox.Checked)
{ Response.Write(item.Cells[0].Text);
}
}
in this coding i am getting probs...in the for loop.....
initially i got error like this...

Error:'System.Web.UI.WebControls.GridView' does not contain a definition for 'items'

so ... i tried with

foreach(DataGridItem item in DGSample.rows )


even i am getting error like

Unable to cast object of type 'System.Web.UI.WebControls.GridViewRow' to type 'System.Web.UI.WebControls.DataGridItem'.



can u anyone help me to solve this prob???
AnswerRe: how to get the grid items??? Pin
whatUrunning.com28-Sep-08 22:47
whatUrunning.com28-Sep-08 22:47 
Questionshow image usin binding problem Pin
sepel28-Sep-08 22:32
sepel28-Sep-08 22:32 
AnswerRe: show image usin binding problem Pin
Ashfield28-Sep-08 23:10
Ashfield28-Sep-08 23:10 
AnswerRe: show image usin binding problem Pin
AlexeiXX329-Sep-08 13:47
AlexeiXX329-Sep-08 13:47 
GeneralRe: show image usin binding problem Pin
sepel29-Sep-08 19:07
sepel29-Sep-08 19:07 
Questionlinkbutton open link Pin
UD(IA)28-Sep-08 22:15
UD(IA)28-Sep-08 22:15 
AnswerRe: linkbutton open link Pin
Ashfield28-Sep-08 23:22
Ashfield28-Sep-08 23:22 
QuestionHow to get System Language? Pin
kindman_nb28-Sep-08 21:27
kindman_nb28-Sep-08 21:27 
AnswerRe: How to get System Language? Pin
whatUrunning.com28-Sep-08 21:42
whatUrunning.com28-Sep-08 21:42 
Questionmail attachment repeating Pin
kvsreedhar28-Sep-08 21:23
kvsreedhar28-Sep-08 21:23 
AnswerRe: mail attachment repeating Pin
whatUrunning.com28-Sep-08 21:34
whatUrunning.com28-Sep-08 21:34 
GeneralRe: mail attachment repeating Pin
kvsreedhar28-Sep-08 21:39
kvsreedhar28-Sep-08 21:39 
GeneralRe: mail attachment repeating Pin
whatUrunning.com28-Sep-08 21:46
whatUrunning.com28-Sep-08 21:46 
GeneralRe: mail attachment repeating Pin
kvsreedhar28-Sep-08 21:58
kvsreedhar28-Sep-08 21:58 
GeneralRe: mail attachment repeating Pin
whatUrunning.com28-Sep-08 22:01
whatUrunning.com28-Sep-08 22:01 
QuestionFailed to compare two elements in the array Pin
soonarai28-Sep-08 21:14
soonarai28-Sep-08 21:14 
Questionhow to attach a word document to asp.net web application using a checkbox control condition wise Pin
sumanth Reddy28-Sep-08 20:19
sumanth Reddy28-Sep-08 20:19 

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.