datagridview control easy filtering ?

M

milk-jam

I'm trying to set my datagridview so that the first row will be left blank
and to use it as a filtering filed for the datagridview. Until now I was
using 2 datagridview the upper one with a header that sort and one row for
filtering and the lower one with no header for the data. Only it is very
complicated to work this way cause for example when the user click on sort
on the upper datagridview I need to sort the lower grid and so on when the
user change the size of column on the upper datagridview I need to change
the lower one accordingly. Any advice on how to do this ??
 
M

milk-jam

Nop, thats not what im trying to achive at all, thats what im doing at the
moment.
What im trying to achive is to use 1 datagridview and to skip the first row
when i populate the datagridview and i wanna use the first row for
filtering. because i couldnot find the way to do it i used 2 datagridview
but my solution complicate evrything and i wanna find a way to do it with 1
datagridview.
 
M

milk-jam

Yes that’s what I'm trying to do

But I don’t understand how to do it ?

How to I add a ComboBoxes to the header row
 
K

Kevin Yu [MSFT]

Hi milk-jam,

Actually the grid control used in Outlook is different from the one in
VS.NET. In Microsoft, each product team implents their own controls. So
because the Outlook team has the souce code for their grid control, they
can customize it to satisfy thieir needs. However, the DataGridView in
VS.NET is highly encapsuled to meet general requirements, it's hard for us
to do such a job on it. I think your solution is fine for workaround. I'm
sorry for the inconvenience.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

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