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
Priyank Khare
NA
256
76k
gridview related problem
Aug 21 2012 7:12 AM
hello,
i've a gridview of columns 4 to 5.
1st column is id column. so i dont want that whenever i click on row editing,then the default textbox should not be display during editing in the id column.
when i was using this "id" column's readonly property "true", it always updated all the rows insted of particular row.
now i am using following code:-
if (e.Row.RowType == DataControlRowType.DataRow && e.Row.RowState == DataControlRowState.Edit)
{
TextBox tbox1 = (TextBox)e.Row.Cells[2].Controls[0];
tbox1.ReadOnly = true;
}
but the problem is that during editing textbox of "ID"columrn is displaying in readonly mode but in alternative rows of gridview, i can write as well.
but simply i dont want to show this textbox..and how can i disable from whole gridview ratherthan alternate rows.
please help me.
thank you
Reply
Answers (
0
)
Table gets clased if it is user by multiple users on IIS using ASP.NET
how to implement paging in datagrid?