Windows Develop Bookmark and Share   
 index > Windows Forms General > How to know user is moving from a row in datagrid.
 

How to know user is moving from a row in datagrid.

Hi,

Is there any event raised when user moves from one row to another in a datagrid. I want the event to be raised right after user leaves a row. Also, I want to access values in all columns of the row.

Thanks,

bilalso  Thursday, February 23, 2006 9:36 PM
hello,

1/ events triggered when changing row

try RowLeave and RowEnter events of a DataGridView


2/ find cell content

'this takes the cell value in FILE column of the first selected row
Dim CellFile = DataGridView2.SelectedRows(0).Cells("FILE").Value


for every cell you should put this in a For ... Next,
replace Cells("FILE") by an array like CellToCheck("CurrentColumn"),

prior this, define in this array, the fields you would like to grab,


Hope this help !


for some extra infos, search for this in MSDN help :
DataGridView Control (Windows Forms)

aybe  Sunday, February 26, 2006 2:11 PM
I am still using 1.1. I cant use DataGridView control.
bilalso  Thursday, March 02, 2006 5:30 PM

You can use google to search for other answers

Custom Search

More Threads

• is it possible to copy Image to clipboard in EMF format ?
• memory problem with self-removing usercontrols
• listview question
• Form.Validate() method, Validating and Validated events does not work,
• Read de body of a drag dropped mail
• Which control to use if..
• Nodes and trees
• Name all the methods of deploying a .NET assembly
• Minimize form on start up?
• Date time picker configuration help.