-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter not working with List and also no second time sorting is working #16
Comments
Hello, you have to attache the FilterStringChanged and SortStringChanged events of the grid like exposed on the sample project in order to filter and sort the BindingSource attached to the DataGrid. Hope this helps. |
Hello, I am using the whole sample project as It is, just using the List instead of DataSet, nothing else changed, these events are also attached and getting fire appropriately. |
Hello, in order to use the Filer and Sort on a binding source you have to use a DataTable. |
Hello pals! Thank you for support of my project, you do a great work Sorting/Filter with custom Lists or EntityFramework and all other collections not work because DataSource that you want to use must implement IBindingListView interface and have Sort and Filter property. more details you can search here Dear @davidegironi, can you post this answer in the readme.md or any place where peoples can read it? i receive this question very often Thanks, Zuby |
Hello @zubyk. I've edit the README.md file. Thank you for this project, you made most of the work, and it great! |
Is it possible to sort it without knowing the data columns in the first place? If I understand it correctly i need to have BindingSource and declare all datatypes and columns before using a DataTable. The Problem is that my DataTable isn't same everytime. I have a simple yet customizable program, where the end user can specifiy a sql connection and the sql query on his own. This makes it impossible to declare the columns in the BindingSource. What can I do? Edit:
|
Hello @Emporea , it should work. Take a look at the dentned reports run form, there custom query are executed and loaded to a filtered datagrid view. https://github.com/davidegironi/dentned/blob/master/DentneD/Forms/FormReportsrun.cs |
I want to use filters and sorts in another language? how can i get it? i updated the new version but in execution time we don't have the option... can i set it in code behind or another configuration? |
Hello @marceloleandro111 , take a look at the sample project. You can "inject" the laguage using the SetTranslations method. Like here:
|
Yeaa! that's it. I found this before....thank you! |
Is it possible to filter data from a button, ie set programmed filtering? If so how? |
Take a look here: #79 |
Possibly related item: #85 |
Hii, |
can you post example with vb.net and access database |
Hello @barawy . This library is mainly written in C#, so for the sample project. Unluckily I've no time to dedicate to sample implementation. Buf if you do this, you can poste your sample link here. It would be helpful maybe for other. |
hi. how we can have sum a special column value under that column in this gridview? |
Hello @farshadvl . You can add a custom Row or Colum in your DataTable and use it. |
I mean I want to sum filtered column value .how can I do that? |
You have to build a custom function to do that. It's not supported natively |
I don't have any idea about how to do that . can u please show us how to code that function? |
Unluckily I've no time to implement this... sorry about that. A trick could be add a column at the end of the datatable (ordered as example with an hidden column or updating the sort order string), detecting and changing it whenever the filter change. |
Your question is not related to this issue, anyway you could use the SetChecklistTextFilterRemoveNodesOnSearchMode method. |
I confirmed that it works like Excel filter as you said. |
The grid is failed to sort the data if we have sort it using any column it sticks and nothing happens. Filters are not at all working. The list can't sort the data default and so we referred sortable binding list from one of the blog and after that sorting is working but for only once.
Blog for sortable binding list: http://martinwilley.com/net/code/forms/sortablebindinglist.html
The text was updated successfully, but these errors were encountered: