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
Shreyas Jain
NA
15
11.7k
how to dynamically delete a column from a gridview
Mar 28 2014 9:07 AM
when the user selects an option from a dropdownlist ie ACTIVE . i want that column 11 of gridview should be visible=false
this code is Not working when there are no records in a gridview.
if (ddlstatus.SelectedValue == "ACTIVE")
//dropdownlist value change
{
lablestatus.Text = "ACTIVE USERS";
//e.Row.Cells[10].Visible = false;
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lnk = (LinkButton)(e.Row.FindControl("lbaccept"));
lnk.Text = "Block";
lnk.CommandName = "Blocked";
}
}
Thanks
Reply
Answers (
1
)
Swap Rows based on Comparison
how to send sms using way2sms and fullonsms in asp.net