Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
8
Reply
get tex box value inside gridview
shibasankar behera
Oct 4 2013 6:22 AM
1.2k
Reply
I have placed GridView1 inside a panel in .aspx file.
here is my code behind...
foreach (GridViewRow gvrC in GridView1.Rows)
{
if (gvrC.Visible)
{
for (int x = 2; x < GridView1.Columns.Count; x++)
{
foreach (Control cc in gvrC.Cells[x].Controls)
{
string str = ((TextBox)cc).Text;
//my code here. I want to display textbox value
}
}
}
}
but it is not entering the 2nd foreach() loop.
plz give me the solution.
Thank You.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
8
)
Next Recommended Forum
create c# window application show all field in Marathi..???
how to lock excle file cells in C#