It seems it doesn't render the selected rows.
I tried using:
<SelectedRowStyle BackColor="yellow" />
both in the skin file and in the aspx file, and this is after trying to change the CSS marked "
.MyGridView .AspNet-GridView table tbody tr.AspNet-GridView-Selected td"
Crawling up the walls, started digging into the code, found out that:
This doesn't occurr for all rows, just for the alternate ones. Normal items are rendered properly.
The reason is simple: the adapter doesn't render a AspNet-GridView-Selected Class for the alternate ones, in fact, it doesn't give ANY class for the selected one and the one before, and the one after.
this is a piece of the rendered HTML
Before: (row number one selected, all is fine)
<tbody>
<tr class=" AspNet-GridView-Selected ">
<td><a href="javascript:__doPostBack('GridView1','Select$0')">Select</a></td>
<td>Sinh</td>
<td>17416</td>
<td>31</td>
<td>1.7943</td>
</tr>
<tr class=" AspNet-GridView-Alternate ">
<td><a href="javascript:__doPostBack('GridView1','Select$1')">Select</a></td>
<td>Tanh</td>
<td>17448</td>
<td>31</td>
<td>1.7910</td>
</tr>
<tr>
<td><a href="javascript:__doPostBack('GridView1','Select$2')">Select</a></td>
<td>Truncate</td>
<td>18233</td>
<td>31</td>
<td>1.7139</td>
</tr>
And after - row number 2 (alternate item) chosen:
<tbody>
<tr>
<td><a href="javascript:__doPostBack('GridView1','Select$0')">Select</a></td>
<td>Sinh</td>
<td>17416</td>
<td>31</td>
<td>1.7943</td>
</tr>
<tr>
<td><a href="javascript:__doPostBack('GridView1','Select$1')">Select</a></td>
<td>Tanh</td>
<td>17448</td>
<td>31</td>
<td>1.7910</td>
</tr>
<tr>
<td><a href="javascript:__doPostBack('GridView1','Select$2')">Select</a></td>
<td>Truncate</td>
<td>18233</td>
<td>31</td>
<td>1.7139</td>
</tr>