> I also have a problem doing this. It doesn't seem to work out of the
> box and I'm not sure which method is the best to choose to solve it. I
[quoted text clipped - 32 lines]
> > > Kevin Spencer napsal(a):
> > >> I meant, are you using a DataSource for the DataGridView columns?
You'll have to forgive me. It's late, and I've put in a long day (in a long
series of long days!). In addition, I haven't worked on this particular
project for awhile, and the DataGridView is one complex critter, so I may be
a bit lax in my recollection. But I do want to help, so I'll try to point
you in the right direction.
I believe you're on the right track. As I recall, it is necessary to use
parent/child relationships, and possibly a combination of two related
DataTables to do this, perhaps even a custom View from the DataSet. I know
that's not much, but I'm afraid it's all I have time for right now. In fact,
I should probably go to bed!

Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
Sequence, Selection, ZZZZZZZZzzzzzzzzzzzzzzzzzzzzzzzz.......................
> Here is what I have now:
> dataView.Sort = dataGridView.SortedColumn.Name + " " +
[quoted text clipped - 47 lines]
>> > > Kevin Spencer napsal(a):
>> > >> I meant, are you using a DataSource for the DataGridView columns?
whittetinternet@earthlink.net - 27 Jul 2006 18:22 GMT
Happy to receive the help.
The solution with a databound grid that I used was to add an
DataColumn.Expression to the combo box column and use that column to
sort using the click event of the DataGridView column header and set
the dataView.Sort = "MyColumnNAME ASC";
Also, we had a request to display an inserted row in Rows[0] after each
insert. This solution will help solve that too.
> You'll have to forgive me. It's late, and I've put in a long day (in a long
> series of long days!). In addition, I haven't worked on this particular
[quoted text clipped - 68 lines]
> >> > > Kevin Spencer napsal(a):
> >> > >> I meant, are you using a DataSource for the DataGridView columns?