2 datagrid view questions

  • Thread starter The angry snapping Goose
  • Start date
T

The angry snapping Goose

Does anyone know where I can look to find out the following

1. How to get rid of the first column in the datagrid view that has the ">"
in it.

2. If #1 is not doable, how to unselect all items in the datagridview. I
had to add tab order within the datagrid view. When I tab out of the "last"
editable column in the datagridview, I change focus to the next component
(in this case a button). That works but I see the ">" right next to the
last "selected" row in the datagridview before I changed focus. If I can
unselect the row (I turned off Multi-Select so only 1 row can be selected
max) before leaving focus, that problem will be fixed...

Also, I noticed a bug (I think) with DataGridView. I run into a situation
where I loop thru all cells and check their "Displayed" property
(DataGridViewCell) and for a particular cell, it's displayed property is set
to "True" but it's NOT in the displayed region of the DataGridview. I
wanted to use FirstDisplayedRow property in the datagridview to "advance" to
the next row when tabbing and I'm checking the "Displayed" property to
trigger that event (ie, if "Displayed == false", then call the
FirstDisplayedRow on the DataGridView to be that cell. What I have noticed
is that cell is due to be the "very" next cell right after the bottom most
displayed cell. Nowhere in the region of the viewable area is the cell
visible yet the property is set to true. In that case, when tabbing t the
next row, that row does not become viewable and you have to scroll down one
row to see it become viewable.

thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top