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
saswat kumar
1.5k
207
28.2k
Asp .Net GridView
Jun 30 2017 3:03 AM
Hi,
I have added one row dynamically below gridview header for inline search.I want to get value of these textbox on postback.
for dynamic row:
GridViewRow row = new GridViewRow(0,0, DataControlRowType.Header, DataControlRowState.Normal);
for (int i = 0; i < GridView1.Columns.Count; i++)
{
TableHeaderCell cell = new TableHeaderCell();
TextBox txtSearch = new TextBox();
txtSearch.Visible = true; txtSearch.Width = 140;
txtSearch.CssClass = "form-control";
txtSearch.ID = "txt1";
cell.Controls.Add(txtSearch);
row.Controls.Add(cell);
}
GridView1.HeaderRow.Parent.Controls.AddAt(1, row);
}
thanks
Reply
Answers (
1
)
Pass date as parameter to action method in ASP.Net MVC
login page and registration page creation in ASP.Net MVC