Dear Friends
In my Project I want to Drag the text of the Text Box into any Particular cell of the DataGrid which ever user wants to,
but my problem is I am not able to find the Coordinates of the cell cell in which user will drop the text and hence not able to put the text into desired Cell.
Code snippet below shows the code in the Dragdrop event of the dataGrid
Dim sText As String = ""
Dim nrow As Integer = 'Need to get this rowIndex
Dim nCol As Integer = 'Need to get this ColIndex
Dim txt As TextBox = DirectCast(e.Da ta.GetData(GetT ype(TextBox)), TextBox)
sText = txt.Text
DataGridView1.R ows(nrow).Cells (ncol).Value = sText
Some body pl help its urgent
In my Project I want to Drag the text of the Text Box into any Particular cell of the DataGrid which ever user wants to,
but my problem is I am not able to find the Coordinates of the cell cell in which user will drop the text and hence not able to put the text into desired Cell.
Code snippet below shows the code in the Dragdrop event of the dataGrid
Dim sText As String = ""
Dim nrow As Integer = 'Need to get this rowIndex
Dim nCol As Integer = 'Need to get this ColIndex
Dim txt As TextBox = DirectCast(e.Da ta.GetData(GetT ype(TextBox)), TextBox)
sText = txt.Text
DataGridView1.R ows(nrow).Cells (ncol).Value = sText
Some body pl help its urgent
Comment