HELLLLP.. datagrids

france

Member
Joined
Feb 17, 2005
Messages
17
Location
CA
Programming Experience
1-3
Hello... I have a proj due in a few weeks.. can somebody help me...

I have a datagrid which contains tables from my access db however I am puzzled how can the system know that I have pressed a certain row in the datagrid?

for instance I want to delete a row in the grid is it possible that If I press the row and press a button delete the program will know that it will delete that certain row?

can anyone explain this to me plsss I will really appreciate it...
 
Here is part of your problem

VB.NET:
		If datagrid1.CurrentCell.RowNumber < (datagrid1.VisibleRowCount - 1) Then
			' Set the current row using the RowNumber property of the CurrentCell.
			currRow = CType(datagrid1.DataSource, DataTable). _
			   Rows(datagrid1.CurrentCell.RowNumber)

currRow is your selected row.
 
Back
Top