473,834 Members | 1,682 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[DataGridView sort problem] how can i unsort without changing the current order

Hi,

Im using visual studio 2005,C#2 Framework 2.0
In my program, i have a DataGridView where DataGridView.Da taSource
equal to a BindingSource.D ataSource and this BindingSource.D ataSource
equalt to a DataTable.

i handled the event ColumnHeaderMou seClick to perform a sort.
i tryied this methods:
1/BindingSource.S ort=mydgvColumn .Name+" ASC ";
2/DataGridView.So rt(mydgvColumn, direction);

both perform a sort as I wanted

THE PROBLEM IS:
I have a column containing check boxes,
suppose I sort on this column, when i edit (check) a cell, the
application is automaticaly reordred at the moment when i quit the
cell; then if i try to check another cell I edit a wrong one.

so please have you anysuggestion about this

regards
ps: sorry for my english

Jul 27 '07 #1
0 1980

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

Similar topics

3
2211
by: Ron Brennan | last post by:
Good morning. I have a page displayed and want to get information from a user using showModalDialog, and then send a request to the server for more information based on the user info from the showModalDialog - without changing the displayed page. Is this possible? Thanks.
2
2110
by: Don | last post by:
is there any way to disable the controls on a form without changing their appearance? i would like to make it impossible for a user to click buttons and edit text boxes while the controls retain their normal appearance. When disabled, the text in text boxes becomes difficult to read also, is there a way to disable the mouse cursor at certain times thanks
16
2472
by: StenKoll | last post by:
Help needed in order to create a register of stocks in a company. In accordance with local laws I need to give each individual share a number. I have accomplished this by establishing three tables (se below) then I run a query giving me a running total, which give me the first stock in the batch purchased by an individual, then I use this number and add the number of shares in order to find the number of the individuals' last share. So...
2
2076
by: S P Arif Sahari Wibowo | last post by:
Hi! Do you know how to put a form's Access-Visual-Basic-code that will force the form to be inserted, while the user has not type anything in the form, without changing focus, selection, etc.? Here is the story. I have this structure:
5
1885
by: Ed Chiu | last post by:
Hi, Is there a way to sort a datagrid without the help of SQL server? I usually use ADO.Net to get a dataset from SQL sever then bind it to datagrid. Now I am asked to make datagrid support sorting, of course I can change my SQL statements by adding order by clause for sorting purposes. But I would like to know if there are other options. TIA
0
1023
by: Faik Uygur | last post by:
Is there a python way of getting the current umask without changing it? os.umask changes it, and i dont want to use os.system("umask") - Faik
1
1676
by: nrajeshatwork | last post by:
Hi I need to print a page without header and footer. Can it be done without changing the page settings in the browser. If so plz mail me. Regards,
3
1472
by: John Torres | last post by:
I am trying to copy a format from one of the template from Microsoft Website access database (Inventory Management Database) where when you go to Purchase Orders Form and there is a preview order button command at the bottom and when you click on it, it shows the current order shown on the form as a Report Type (it pulls a report). I made it as far as to pull the Report and even got the macros working but for some reason it shows all the report...
4
3376
by: dertopper | last post by:
Hello newsgroup, is it possible to create a std::locale object without changing the global C locale? Is this implementation defined? My problem is that I work in a multi-threaded environment that has to deal with two different locales. Unfortunately, the code uses plain C functions for IO at many places. However, there is a single point that uses std::isprint with a C++ locale that is different from the standard locale. That's why I'm...
0
9643
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10504
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
10544
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
10214
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
6951
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
5624
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...
1
4425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3079
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.