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