[SOLVED]datagriview add double header row

Answered
0
0

Hi,

my idea was to add a double header line in a datagridview for insert dock.fill textboxes inside the cells, so I can make custom search, and they would be resized together with the columns.
Is it possible to do something like this in a “professional” way?

regards

Cristian Zerbinati

  • You must to post comments
Best Answer
0
0

Sorry for the delay. There was a bug in the bindToGrid() javascript function that has been fixed in the latest 2.1 release. See attached sample.

  • You must to post comments
Best Answer
0
0

Hi Christian, one way is to use the ColumnFilter extension, but we also have an internal system of binding 2 grids. You know that a DataGridView is also a container and you can drop and dock controls inside to create a composite grid?

It lets you create a grid with a child grid (even more than one) and use the second grid as a summary or header. The problem is keeping the columns and scrolling in sync. Which is implemented internally for another framework based on Wisej. I’ll see if some of that code can be copied into the wisej.web.DataGrid.js widget and then I can send you a simple demo. For now enjoy the screenshot, shows a grid with a summary grid and another with a header grid. The size of the child grid is also resizable.

 

Attachment
  • You must to post comments
0
0

Hi Luca,

yes good idea! I hadn’t thought about the possibility of using two datagridviews.

I saw that this is a request made by other users a time ago, If you can send the sample I thank you so much.

thank you!

Cristian

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.