473,769 Members | 7,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sort on bound DataGrid

I have create a page with SQLDateAdapter, SQLConnetion, DataSet and
Datagrid.
I have bound the Datagrid at design time.
I could not find a way to perform sort operation on the datagrid this way.
I could only sort when I am not bounding the datagrid at design time
Anyone has a code example for that (datagrid is bound in the designer) ?

Thanks for your time
ra***@hotmail.c om


Nov 17 '05 #1
0 1378

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

Similar topics

3
4088
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 datagrid. When I sort the datagrid the selected item changes. I can not find the event that is fired when the sorting occurrs therfore I cannot enable\disable the icons Thanks in advance,
4
4320
by: Bill Todd | last post by:
I have a DataTable in a DataSet. A DataGrid is bound to the DataTable. When I assign a field to the DataTable.DefaultView.Sort property the order in the DataGrid does not change. What am I missing? -- Bill
5
4444
by: Bill Todd | last post by:
In a WinForms application with a DataGrid bound to a DataTable, if I change the DefaultDataView.Sort property the order of the data in the grid does not change. If I change the Sort property then reassign the DataTable to the DataGrid's DataSource the DataGrid does show the new order. If I change the Sort property then call DataGrid.SetDataBinding the DataGrid does _not_ show the new order.
0
338
by: Ya Ya | last post by:
I have create a page with SQLDateAdapter, SQLConnetion, DataSet and Datagrid. I have bound the Datagrid at design time. I could not find a way to perform sort operation on the datagrid this way. I could only sort when I am not bounding the datagrid at design time Anyone has a code example for that (datagrid is bound in the designer) ? Thanks for your time ra294@hotmail.com
5
1443
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 how to do this. If the query were on the same webform this would not be a problem, i'd jist add it to the select string. but..... using the component designer in vs.net i'm not sure how to do this, nor am i sure how to call the fill with the sort...
6
2004
by: Becker | last post by:
Very simple, I have a datagrid on a windows form. I load some rows in it. I click a column header and it sorts ascending. I click it again it sorts descending. This is great, but what I want to do is after the sort, I want to know what row is now the "selected" row. I want to do this so I can update some stuff on the form that correlates to this row. This does not seem so easy...please advise. Thanks, Ben
1
1403
by: thebison | last post by:
Hi all, I hope someone can help with this relatively simple problem. I am building a timesheet application using ASP.NET C# with Visual Studio 2003.As it is only a protoype application, my database has been made in MSDE. I've searched all over the web for the answer to this, but can't quite work it out. Basically, I am showing all Timesheet Entries in a DataGrid, by
0
1233
by: crferguson | last post by:
I've been looking in every place I can to find a solution for this and I believe I've pieced a solid one together so I thought I'd share since I've found so much help on these groups... This is for winforms only as I haven't tried anything like this in ASP... - I've added a boolean property to the form in the General Declarations section:
5
3245
by: Ben | last post by:
Does anyone have any example code showing how to sort a datagrid that is bound to a custom class array? My code calls a web method that returns an array of type LeadListDS. LeadListDS consists of string, DateTime, and boolean datatypes. This returned array is then bound to the datagrid and seems to work fine I just need to figure out this sorting issue. Thanks Ben
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.