how to deselect all rows in a gridview - asp.net?
if I select one row in the GridView and do any update, how do I deselect this row?
thanks
It looks like you can set SelectedIndex to -1 .
-1
gridView1.SelectedIndex = -1;
Note. This must be done after each data binding to the GridView.
As SvDevMan81 noted, you should set the GridView's SelectedIndex property to -1.
SelectedIndex
Similarly, if you have an editable grid and want to return the grid to read-only mode, you can set the GridView's EditIndex to -1. A.
EditIndex
Source: https://habr.com/ru/post/1335161/More articles:Vectors and matrices in Python 3.x - pythonWhat does setWidth ("*") do in CSS / SmartGWT? - cssIs there a parser for dating modern natural languages ββfor Java? - javaWhere is the Vim document format specification? - vimcode contracts create productivity - buildC ++ and a constant reference to the problem of temporary binding (the implementation of the D language follows the meaning and the reference rules in C ++ 0X) - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1335163/mercurial-queues-merging-patches-from-multiple-repositories&usg=ALkJrhiJYQ4ZJuXn_iPYMl_LY5o8ixwk0wParallel ForEach using very little computing power over time - c #XSL: get variable data without exslt: node -set - phpBest way to print using wpf 4 - c #All Articles