0

The DataGridView is bound to a DataSet. Let's say there is only one column for this example. The 1 column is filename. For each row I need to open the FileOpenDialog to change or update the filename column. How do I add the button? does it have to be in a separate column or can it be in the same colum?

STiLeTT
  • 1,023
  • 10
  • 23
Mike P
  • 1

1 Answers1

0

Add another unbound column and use DataItemTemplate to add button for each row. On Button_Click event, open the FileOpenDialog and while opening you can pass the value of file name which is in the same row's column 0.

STiLeTT
  • 1,023
  • 10
  • 23
Umesh
  • 2,704
  • 19
  • 21