hi every one
i have a datagridview
that show my data in
columns. what i'm
trying to accomplish is
that after choosing a
row and pressing edit
button a new form will
open and split the row
for the right text
boxes to update the
data.
the datagridview row
shows different types
of data:
name,email,date,etc...
any idea? Thanks in
advance!

I take it you have the selection mode set to Row select?

You will need to use the SelectedRows property e.g.

Dim startingBalanceRow As DataGridViewRow = DataGridView1.SelectedRows(0)

textbox1.text = startingBalanceRow.Cells(0).value
textbox2.text = startingBalanceRow.Cells(1).value
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.