TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
yogita dhingra
NA
31
0
error in rowdatabound
Oct 2 2009 3:39 AM
foreach (GridViewRow row in GrdManageMember.Rows)
{
try
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
{
string SchemeDays = string.Empty;
SchemeDays = ((Label)e.Row.FindControl("lblPeriod")).Text;
if (SchemeDays == "90")
{
((Label)e.Row.FindControl("sch_code")).Text = "3 months";
}
if (SchemeDays!=null && SchemeDays=="183")
{
((Label)e.Row.FindControl("sch_code")).Text = "6 months";
}
if (SchemeDays == "365")
{
((Label)e.Row.FindControl("sch_code")).Text = "12 months";
}
}
}
}
catch (Exception ex)
{
throw ex;
}
}
its giving error. i m not geting the data in column wht the wrong in this code can u plz tell me.
Reply
Answers (
1
)
About the books to refer C#.net
Add New Row When Focus On Last Column