Home All Groups Group Topic Archive Search About
Author
7 Jul 2006 10:30 PM
Samuel Shulman
I would like to implement Date Sort in DataGridView control

Any clue?

Samuel

Author
7 Jul 2006 3:48 PM
Patrice
What have you tried that doesn't work ? I gave this a quick try and it looks
correct. Make sure you are using a Date column (and not a string column) so
that it can be sorted correctly.

Also for controls I would post to an asp.net or a windows forms group (you
have a datagridview for both Windows and Web applications) rather than to a
general vb group.

--
Patrice

"Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message de
news: uWngO6coGHA.2***@TK2MSFTNGP05.phx.gbl...
Show quoteHide quote
>I would like to implement Date Sort in DataGridView control
>
> Any clue?
>
> Samuel
>
Author
11 Jul 2006 12:37 PM
Samuel Shulman
I set the Value Type of the cell to Date and then it works

What do you mean by saying column type is it something that you set?




Show quoteHide quote
"Patrice" <scr***@chez.com> wrote in message
news:OlzXPyLpGHA.4216@TK2MSFTNGP04.phx.gbl...
> What have you tried that doesn't work ? I gave this a quick try and it
> looks correct. Make sure you are using a Date column (and not a string
> column) so that it can be sorted correctly.
>
> Also for controls I would post to an asp.net or a windows forms group (you
> have a datagridview for both Windows and Web applications) rather than to
> a general vb group.
>
> --
> Patrice
>
> "Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message de
> news: uWngO6coGHA.2***@TK2MSFTNGP05.phx.gbl...
>>I would like to implement Date Sort in DataGridView control
>>
>> Any clue?
>>
>> Samuel
>>
>
>
Author
11 Jul 2006 12:53 PM
Patrice
I meant the type of the column that comes from the datatable source. It
looks like, you are using another source for your grid (whose column is seen
as "string") in which case it could explain why you have to explicitely
mention the cell type...
--
Patrice

"Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message de
news: e$ZZHbOpGHA.***@TK2MSFTNGP04.phx.gbl...
Show quoteHide quote
>I set the Value Type of the cell to Date and then it works
>
> What do you mean by saying column type is it something that you set?
>
>
>
>
> "Patrice" <scr***@chez.com> wrote in message
> news:OlzXPyLpGHA.4216@TK2MSFTNGP04.phx.gbl...
>> What have you tried that doesn't work ? I gave this a quick try and it
>> looks correct. Make sure you are using a Date column (and not a string
>> column) so that it can be sorted correctly.
>>
>> Also for controls I would post to an asp.net or a windows forms group
>> (you have a datagridview for both Windows and Web applications) rather
>> than to a general vb group.
>>
>> --
>> Patrice
>>
>> "Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message de
>> news: uWngO6coGHA.2***@TK2MSFTNGP05.phx.gbl...
>>>I would like to implement Date Sort in DataGridView control
>>>
>>> Any clue?
>>>
>>> Samuel
>>>
>>
>>
>
>
Author
11 Jul 2006 1:17 PM
Samuel Shulman
In my case the data is not bound


Show quoteHide quote
"Patrice" <scr***@chez.com> wrote in message
news:u%23Z$RkOpGHA.4196@TK2MSFTNGP04.phx.gbl...
>I meant the type of the column that comes from the datatable source. It
>looks like, you are using another source for your grid (whose column is
>seen as "string") in which case it could explain why you have to
>explicitely mention the cell type...
> --
> Patrice
>
> "Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message de
> news: e$ZZHbOpGHA.***@TK2MSFTNGP04.phx.gbl...
>>I set the Value Type of the cell to Date and then it works
>>
>> What do you mean by saying column type is it something that you set?
>>
>>
>>
>>
>> "Patrice" <scr***@chez.com> wrote in message
>> news:OlzXPyLpGHA.4216@TK2MSFTNGP04.phx.gbl...
>>> What have you tried that doesn't work ? I gave this a quick try and it
>>> looks correct. Make sure you are using a Date column (and not a string
>>> column) so that it can be sorted correctly.
>>>
>>> Also for controls I would post to an asp.net or a windows forms group
>>> (you have a datagridview for both Windows and Web applications) rather
>>> than to a general vb group.
>>>
>>> --
>>> Patrice
>>>
>>> "Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message
>>> de news: uWngO6coGHA.2***@TK2MSFTNGP05.phx.gbl...
>>>>I would like to implement Date Sort in DataGridView control
>>>>
>>>> Any clue?
>>>>
>>>> Samuel
>>>>
>>>
>>>
>>
>>
>
>
Author
16 Jul 2006 4:06 PM
Cor Ligthert [MVP]
Patrice,

>
> Also for controls I would post to an asp.net or a windows forms group (you
> have a datagridview for both Windows and Web applications) rather than to
> a general vb group.
>
This is a new sound, may I know why?

Cor

Show quoteHide quote
> --
> Patrice
>
> "Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message de
> news: uWngO6coGHA.2***@TK2MSFTNGP05.phx.gbl...
>>I would like to implement Date Sort in DataGridView control
>>
>> Any clue?
>>
>> Samuel
>>
>
>
Author
17 Jul 2006 7:28 AM
Patrice
Hello Cor,

IMO the "vb" group would be more for language specific issues. For a control
issue, I would post rather either under ASP.NET or Winforms that both have a
control related group. It allows to sort of any ambiguity (unless the OP
mention he uses a Windows or a Web form which is not always the case)...

My first thought was a problem with the datatype of the sorted column, my
second thought was that the OP could have used a Web datagrid (not clear in
the first post if the problem was that the sort incorrect or doesn't work at
all and needs some implementation as with a web datagrid)...

--
Patrice

"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> a écrit dans le message de
news: OTOdrGPqGHA.1***@TK2MSFTNGP05.phx.gbl...
Show quoteHide quote
> Patrice,
>
>>
>> Also for controls I would post to an asp.net or a windows forms group
>> (you have a datagridview for both Windows and Web applications) rather
>> than to a general vb group.
>>
> This is a new sound, may I know why?
>
> Cor
>
>> --
>> Patrice
>>
>> "Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message de
>> news: uWngO6coGHA.2***@TK2MSFTNGP05.phx.gbl...
>>>I would like to implement Date Sort in DataGridView control
>>>
>>> Any clue?
>>>
>>> Samuel
>>>
>>
>>
>
>
Author
17 Jul 2006 8:15 AM
Cor Ligthert [MVP]
Patrice,

The OP was asking for a DataGridView that is only windowsform 2.0.

Ken and I have made our website VB-Tips wich was originaly starting as a
special DataGrid site to use by helping in this newsgroup. Maybe I explain
with that enough.

Beside that would a GridView when it was used with VB Net language code in
my idea be a typical topic for this newsgroup.

It would be something else if the GridView was totaly used with HTML and VBA
code.

Cor

Show quoteHide quote
"Patrice" <scr***@chez.com> schreef in bericht
news:uiSUOKXqGHA.4424@TK2MSFTNGP05.phx.gbl...
> Hello Cor,
>
> IMO the "vb" group would be more for language specific issues. For a
> control issue, I would post rather either under ASP.NET or Winforms that
> both have a control related group. It allows to sort of any ambiguity
> (unless the OP mention he uses a Windows or a Web form which is not always
> the case)...
>
> My first thought was a problem with the datatype of the sorted column, my
> second thought was that the OP could have used a Web datagrid (not clear
> in the first post if the problem was that the sort incorrect or doesn't
> work at all and needs some implementation as with a web datagrid)...
>
> --
> Patrice
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> a écrit dans le message de
> news: OTOdrGPqGHA.1***@TK2MSFTNGP05.phx.gbl...
>> Patrice,
>>
>>>
>>> Also for controls I would post to an asp.net or a windows forms group
>>> (you have a datagridview for both Windows and Web applications) rather
>>> than to a general vb group.
>>>
>> This is a new sound, may I know why?
>>
>> Cor
>>
>>> --
>>> Patrice
>>>
>>> "Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message
>>> de news: uWngO6coGHA.2***@TK2MSFTNGP05.phx.gbl...
>>>>I would like to implement Date Sort in DataGridView control
>>>>
>>>> Any clue?
>>>>
>>>> Samuel
>>>>
>>>
>>>
>>
>>
>
>
Author
17 Jul 2006 8:49 AM
Patrice
Ah, great ! I tend to always thought of the GridView as the DataGridView.
Don't remember if this bad habit comes from the beta...

Despite this I always feel *I* would post to "vb" for general issues and to
either "windowsfroms.controls" or "aspnet.webcontrols" for control issues.
What would be those groups for then ?

That said it was not intended to be so crucial in my post as my first move
was still a problem with the datatype used for the sort in a DataGridView
(winforms implied then) and I'm really picky only on much more flagrant OT
posts (I'm afraid this one is)...

Have a nice day.

--
Patrice

"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> a écrit dans le message de
news: Os2H0jXqGHA.3***@TK2MSFTNGP04.phx.gbl...
Show quoteHide quote
> Patrice,
>
> The OP was asking for a DataGridView that is only windowsform 2.0.
>
> Ken and I have made our website VB-Tips wich was originaly starting as a
> special DataGrid site to use by helping in this newsgroup. Maybe I explain
> with that enough.
>
> Beside that would a GridView when it was used with VB Net language code in
> my idea be a typical topic for this newsgroup.
>
> It would be something else if the GridView was totaly used with HTML and
> VBA code.
>
> Cor
>
> "Patrice" <scr***@chez.com> schreef in bericht
> news:uiSUOKXqGHA.4424@TK2MSFTNGP05.phx.gbl...
>> Hello Cor,
>>
>> IMO the "vb" group would be more for language specific issues. For a
>> control issue, I would post rather either under ASP.NET or Winforms that
>> both have a control related group. It allows to sort of any ambiguity
>> (unless the OP mention he uses a Windows or a Web form which is not
>> always the case)...
>>
>> My first thought was a problem with the datatype of the sorted column, my
>> second thought was that the OP could have used a Web datagrid (not clear
>> in the first post if the problem was that the sort incorrect or doesn't
>> work at all and needs some implementation as with a web datagrid)...
>>
>> --
>> Patrice
>>
>> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> a écrit dans le message
>> de news: OTOdrGPqGHA.1***@TK2MSFTNGP05.phx.gbl...
>>> Patrice,
>>>
>>>>
>>>> Also for controls I would post to an asp.net or a windows forms group
>>>> (you have a datagridview for both Windows and Web applications) rather
>>>> than to a general vb group.
>>>>
>>> This is a new sound, may I know why?
>>>
>>> Cor
>>>
>>>> --
>>>> Patrice
>>>>
>>>> "Samuel Shulman" <samuel.shul***@ntlworld.com> a écrit dans le message
>>>> de news: uWngO6coGHA.2***@TK2MSFTNGP05.phx.gbl...
>>>>>I would like to implement Date Sort in DataGridView control
>>>>>
>>>>> Any clue?
>>>>>
>>>>> Samuel
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
8 Jul 2006 1:22 PM
Bob Lehmann
Maybe you could begin by sorting out what the date is, first.

Bob Lehmann

Show quoteHide quote
"Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message
news:uWngO6coGHA.2320@TK2MSFTNGP05.phx.gbl...
> I would like to implement Date Sort in DataGridView control
>
> Any clue?
>
> Samuel
>
>
Author
11 Jul 2006 11:53 PM
Scott M.
First, you should implement the correct date on your own system.


Show quoteHide quote
"Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message
news:uWngO6coGHA.2320@TK2MSFTNGP05.phx.gbl...
>I would like to implement Date Sort in DataGridView control
>
> Any clue?
>
> Samuel
>
Author
12 Jul 2006 12:43 PM
Samuel Shulman
Good point,
I am actually concerned with relationships rather than accuracy..
I actually set the wrong date for testing purposes

Samuel



Show quoteHide quote
"Scott M." <s-mar@nospam.nospam> wrote in message
news:eKtBaTUpGHA.2360@TK2MSFTNGP05.phx.gbl...
> First, you should implement the correct date on your own system.
>
>
> "Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message
> news:uWngO6coGHA.2320@TK2MSFTNGP05.phx.gbl...
>>I would like to implement Date Sort in DataGridView control
>>
>> Any clue?
>>
>> Samuel
>>
>
>
Author
12 Jul 2006 2:34 PM
Scott M.
That kind of thing will get you black listed around here.  It's probably the
most rude thing you can do (future post) in a newsgroup.  Inadvertant or
not, we all have to see this thread at the top of our list for the next 3
weeks.


Show quoteHide quote
"Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message
news:uz3WODbpGHA.4268@TK2MSFTNGP04.phx.gbl...
> Good point,
> I am actually concerned with relationships rather than accuracy..
> I actually set the wrong date for testing purposes
>
> Samuel
>
>
>
> "Scott M." <s-mar@nospam.nospam> wrote in message
> news:eKtBaTUpGHA.2360@TK2MSFTNGP05.phx.gbl...
>> First, you should implement the correct date on your own system.
>>
>>
>> "Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message
>> news:uWngO6coGHA.2320@TK2MSFTNGP05.phx.gbl...
>>>I would like to implement Date Sort in DataGridView control
>>>
>>> Any clue?
>>>
>>> Samuel
>>>
>>
>>
>
>
Author
13 Jul 2006 3:45 PM
Andrew Morton
Scott M. wrote:
> Inadvertant or not, we all have to see this thread at the top of our
> list for the next 3 weeks.

Unless you delete the messages from OE. Highlight them, press the Delete
key. The permanent deletion refers to on your computer, not the news server.

Andrew
Author
13 Jul 2006 5:25 PM
Scott M.
That's not the point.  We shouldn't have to delete a forward-post in our
readers.  The OP should just follow the netiquette of the NG's in the first
place.


Show quoteHide quote
"Andrew Morton" <a**@in-press.co.uk.invalid> wrote in message
news:eLyWVNppGHA.2464@TK2MSFTNGP03.phx.gbl...
> Scott M. wrote:
>> Inadvertant or not, we all have to see this thread at the top of our
>> list for the next 3 weeks.
>
> Unless you delete the messages from OE. Highlight them, press the Delete
> key. The permanent deletion refers to on your computer, not the news
> server.
>
> Andrew
>
Author
1 Aug 2006 5:25 PM
Daniel
Hello Samuel,

> I would like to implement Date Sort in DataGridView control
>
> Any clue?
>
> Samuel
>

Samuel,

In case you don't realise, the date is wrong on your computer.  Your post
has the date 7th August!

Daniel

To contact me you need to clean up my email address.  It should be fairly
obvious...