Datagridview

S

Ste

Good morning,

I have a datagrid view with one textboxcolumn and one buttoncolumn.

When I press the button on a row a folderbrowser dialog is shown. When I
select a path and press ok write the result path on related text cell.

The problem is that new record is not added and I cannot insert new rows.

Thank you.
Stefano.

P.S. Datagrid is bounded with a custom object, if i write directly in
the text cell all is done correctly.
 
I

Ignacio Machin ( .NET/ C# MVP )

Good morning,

I have a datagrid view with one textboxcolumn and one buttoncolumn.

When I press the button on a row a folderbrowser dialog is shown. When I
select a path and press ok write the result path on related text cell.

in the same row right?
The problem is that new record is not added and I cannot insert new rows.

how do you add a new row?

how do you update the selected file in a row?
 
S

Ste

Ignacio Machin ( .NET/ C# MVP ) ha scritto:
in the same row right?

Yes,

columns are :

source (textcolumn)

selSource (buttoncolumn)

Pressing selSource I can browse folders and when I select one his path
is write in source cell on the same row.
how do you add a new row?

I need to have normal behaviour, the problem is that when i write by
keyboard on a cell a new row is added at the bottom, when i set value
property for the cell nothing happens.
how do you update the selected file in a row?

Simply setting his cell value property.

Thank you.
Stefano.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top