473,320 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to sort a datagrid?

Dan
Hi,

I have a programatically built up datagrid and i want, after binding to be
able to sort the columns by clicking the title of the datagrid column,
anyone know or able to provide a code snippet of how to do this? C# pls

--
Dan
Feb 1 '06 #1
3 918
Dan
Superb man, all 'sorted' now.....sorry awful joke.

--
Dan
"Dan" <dv*******@aol.com> wrote in message
news:eJ*************@TK2MSFTNGP15.phx.gbl...
Hi,

I have a programatically built up datagrid and i want, after binding to be
able to sort the columns by clicking the title of the datagrid column,
anyone know or able to provide a code snippet of how to do this? C# pls

--
Dan

Feb 1 '06 #2
Why superb man???

"Dan" <dv*******@aol.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
Superb man, all 'sorted' now.....sorry awful joke.

--
Dan
"Dan" <dv*******@aol.com> wrote in message
news:eJ*************@TK2MSFTNGP15.phx.gbl...
Hi,

I have a programatically built up datagrid and i want, after binding to
be able to sort the columns by clicking the title of the datagrid column,
anyone know or able to provide a code snippet of how to do this? C# pls

--
Dan


Feb 2 '06 #3
Dan
You know as in great? Well done? Thanks? .....the bad joke was the all
'sorted' now . wow that joke was worse than i thought :(

--
Dan
"Patrick.O.Ige" <na********@hotmail.com> wrote in message
news:ui**************@TK2MSFTNGP09.phx.gbl...
Why superb man???

"Dan" <dv*******@aol.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
Superb man, all 'sorted' now.....sorry awful joke.

--
Dan
"Dan" <dv*******@aol.com> wrote in message
news:eJ*************@TK2MSFTNGP15.phx.gbl...
Hi,

I have a programatically built up datagrid and i want, after binding to
be able to sort the columns by clicking the title of the datagrid
column, anyone know or able to provide a code snippet of how to do this?
C# pls

--
Dan



Feb 2 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: | last post by:
Is there an event that is invoked when a user sorts a column in a Windows Forms DataGrid? I have context senstive icons that are enabled\disabled depending upon the selected item in the...
4
by: Steve B. | last post by:
I have a DataGrid on the left and TextBoxes (TB) on the right. The TB's reflect the contents of the grid cells. Sorting of columns (both thru VS and programmatically) work fine except, when the...
7
by: DC Gringo | last post by:
I have a datagrid that won't sort. The event handler is firing and return label text, just not the sort. Here's my Sub Page_Load and Sub DataGrid1_SortCommand: -------------------- Private...
5
by: Kurt Schroeder | last post by:
I'm using VS.net. I have created a component with the basic set of database commands. This component returns a record set that is bound to a datagrid. I want to add a dynamic sort, but am not sure...
2
by: shuckjunkmail | last post by:
It was suggested that I re-submit this question as a new post rather than adding onto an old and unanswered post. The basic problem has to do with the .NET datagrid and sorting. I am having...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.