I have a datagridview with some row that I want only to display. Which is
fine cause I make them readonly. But I would like that you can't land in
those cells as well. Is this possible?
A control with an tabindex value of minus one (-1) is passed over in the tab
sequence.
Is there a way you can put this in as an attribute for the control?
tabindex="-1"
>I have a datagridview with some row that I want only to display. Which is
>fine cause I make them readonly. But I would like that you can't land in
>those cells as well. Is this possible?
Josh Grameson - 09 May 2006 04:27 GMT
I understand that each control has a tabindex. But in this case wouldn't the
control be the DataGridView itself, not the individual cells? I don't want
to avoid focus to any of the DataGridView cells but to certain columns.
>A control with an tabindex value of minus one (-1) is passed over in the
>tab sequence.
[quoted text clipped - 6 lines]
>>fine cause I make them readonly. But I would like that you can't land in
>>those cells as well. Is this possible?
You heed to handle either ItemDataBound or PreRender event. In the event
handler you can access individual rows and their cells. Set Enabled=false
for the cells you want to disable.
Eliyahu
>I have a datagridview with some row that I want only to display. Which is
>fine cause I make them readonly. But I would like that you can't land in
>those cells as well. Is this possible?