vb.net - figure out rowindex on a row I just inserted? -


I have a vb project that I am updating and has a datagridview, a panel and buttons button CRUD operation To control. The panel displays numerical up / down and text boxes to indicate the selected row.

I use some logic to keep track of current selected row and current row index for timer updates in the background. On removing, I reset the focus on the first line. On loading I focused on the first line I keep current row focus on the update.

On putting a good I want to set that focus which I have just cast. But I do not know a way to determine what is the value of the polyindex for this newly entered line, which is my data, which is sorted on the two ID columns using datagridview, it is not that this new entry just jumped down Will go.

How can I apply it?

View datagrid view events; Its datagrid VVADAdventErgraz parameter contains the property that gives you what you need.

Each line is added to a row, so when you want to check additional lines, you have to wire the event or ignore the event when no line is ignored. (Like your grid fills up with data).

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -