How to Initialize newly added row in datagridview

0
0

Hi,

 

I have a datagridview, I allow user to add row(s), how can I initialize the newly added row?

 

Thanks.

  • You must to post comments
0
0

Hi Glenn,

did you try attaching to the DataGridView´s RowsAdded or UserAddedRow event ?

If your DGV is bound to a BindingList you can also attach to the corresponding event.

Best regards
Frank

 

  • Glenn Gonzales
    Yes, but DataBoundItem is always null.
  • You must to post comments
0
0

Hi Glenn,

You might find it useful to check out the sample in https://wisej.com/support/question/issue-with-bindingsource-addingnew-event

The sample initializes the values of a newly added row.

Let me know if this works for you.

Best,

Levie

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.