is there way allow editing of row instead of whole row?
when search user fill data gridview. if set autogenerateeditbutton true, row editable. example, if gridview has 10 row, when data in row between criteria using if-else statement, want bottom 5 editable instead of whole 10 row.
try this..on gridviews row data bound event check criteria ..
protected void gridview1_rowdatabound(object sender, gridviewroweventargs e) { if ("your condition") { if ("your condition") { e.row.enabled = true;//row editable } else { e.row.enabled = false;//row not editable } } }
Comments
Post a Comment