Databound DataGridView and master details control

0
0

I saw the sample

https://wisej.com/support/question/datagridview-cell-merge

but here the rows are manually added and datagridview is not data bound. How can I add details control for row that will show data from different table. Also I would like this to be show upon request (click on button in the row itself)

Thanx,

D

  • You must to post comments
0
0

Hi Dino,

You can’t add rows to a data-bound DataGridView.

You can simulate a DataBound DGV by calling the Fill() method of the DataGridView, and passing the data object.

From there, it’s a matter of handling the CellClick event and implementing your logic, and also applying the same styling principles of the sample found in the forum post you linked.

Or, you can build the DataGridView by code.

HTH,
Alaa

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.