Quantcast
Channel: Advanced DataGridView with Excel-like auto filter
Viewing all 198 articles
Browse latest View live

Commented Unassigned: Continue filtering after loading saved filters [1532]

$
0
0
Whould it be possible to implement saving and loading of filters in a different way?
It would be fine for users to have the possibility to continue modifying the filters after loading former saved filters.
At the moment in the Sample the whole FilterString for the entire DataGridView is persisted.
To realize this feature the FilterMenu state would have to be persisted.
Comments: Its not a bug its a feature :) Problem that TreeView nodes loads from list of table rows when you open filter menu. You set filter "without 5" You click filter menu Menu get table rows(without 5) and show it I have some ideas how to change it in future releases

Created Unassigned: Loading of filters are very slow at quantity over 10000 rows [1551]

$
0
0
hi im using the control and doing my test runs i can see the control is very slow when it comes to big quatity of rows in the table like over 10000 and i have bout 90000 rows and the filters take good time like 5 min some times more before it shows.

it would be very nice if the loading of the filters and data could be optimized to load data of greate quatity faster.

cheers.

New Post: How can i change column backcolor?

$
0
0
Original => dataGridView.Columns[0].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;

ADGV => ????

please help :)

New Post: Data displays in grid, Filters show correct data, but after filter is selected, data in grid is not filtered.

$
0
0
Using VS 2012 and .NET 4.0
  1. Reading data from SQL into DataTable using SQLDataAdapter: da.Fill(dt)
  2. Loading data into ADGV this way: DataGridView1.DataSource = dt
Data is displayed correctly in Grid.

When a Column Filter is changed, the grid is not filtered.

What is the problem?

Thanks

New Post: Data displays in grid, Filters show correct data, but after filter is selected, data in grid is not filtered.

$
0
0
Ni la ordenacion ni el filtrado instalado en Visual Studio 2013, cual es el problema

Reviewed: 0.1.0.10 (sep. 12, 2015)

$
0
0
Rated 1 Stars (out of 5) - Parece muy bueno, pero no consigo hacerlo funcionar

Reviewed: 0.1.0.10 (Sep 28, 2015)

$
0
0
Rated 3 Stars (out of 5) - filter malfunctions

Commented Unassigned: Filtering on date returns no result when date2 is before date1 [1346]

$
0
0
On a column that contains date, when you filter between two date, if the second date is before the first date, then no data are displayed.

![FileringOnDate](http://i.imgur.com/rhYSqg2.png)

In the OKButton_Click method of the SetFilterForm class you should write :

```C#
else if (this.FilterTypeComboBox.Text == this.RM.GetString("setfilterform_filtertypecombobox_between"))
{
DateTime dt1 = ((DateTimePicker)this.val2contol).Value;
if (dt.CompareTo(dt1) > 0)
{
DateTime tempDateTime = dt;
dt = dt1;
dt1 = tempDateTime;
}

if (this.timeFilter)
{
this.filterString += ">= '" + dt.ToString("o") + "'";
this.filterString += " AND " + column + "<= '" + dt1.ToString("o") + "'";
}
else
{
this.filterString += ">= '" + dt.ToShortDateString() + "'";
this.filterString += " AND " + column + "<= '" + dt1.ToShortDateString() + "'";
}
}
```
Comments: whedn you filter a colunm the data is not shown y

Created Unassigned: how can I apply " Advanced DataGridView with Excel-like auto filter" to my existing Datagridview in vb.net [1552]

$
0
0
hi there,

Please help me!

I already instal
Advanced DataGridView with Excel-like auto filter to my vb.net project, my problem is I don't know how to apply into my existing datagridview

New Post: Data displays in grid, Filters show correct data, but after filter is selected, data in grid is not filtered.

$
0
0
try this:
        private void DataGridView1_FilterStringChanged(object sender, EventArgs e)
        {
            var myDataGrid = sender as Zuby.ADGV.AdvancedDataGridView;
             (myDataGrid.DataSource as DataTable).DefaultView.RowFilter = myDataGrid.FilterString;
        }
 
       private void DataGridView1_SortStringChanged(object sender, EventArgs e)
        {
            var myDataGrid = sender as Zuby.ADGV.AdvancedDataGridView;
            (myDataGrid.DataSource as DataTable).DefaultView.Sort =  myDataGrid.SortString;
        }

Created Unassigned: Filtering is returning duplicates [1553]

$
0
0
I am using the package and when I use contains or equals and my part number it is bring back more than the 1 row that I have in the datatable. What can I do to fix this?
Here is the filter string. ([ItemNumber] LIKE '717630-132')

Source code checked in, #527ec73b76887e1c293fd5e1d0965573e28b317e

$
0
0
DE localization. Thanks to Thomas Freier, Kisslegg (Germany)

New Comment on "Documentation"

$
0
0
how to use this.. Can anyone help?

New Post: Advanced DataGridView Password Problem

$
0
0
Hi everyone,

I would like to consult you about something I could not find on the Internet. A few days ago, I started to use "Advanced DataGridView with Excel-like Auto Filter" in my project.

It works absolutely great in terms of filtering and sorting the data which is coming from a non-encrypted access database.

However, today I decided to encrypt the same database and then when I started the codein Microsoft Visual Studio 2017, it gave an error as follows;

System.Data.OleDb.OleDbException: 'Invalid Password.'

I must put the password inside the following code, but I could not manage it beacuse I don't know how to place a password code inside it.


// TODO: This line of code loads data into the 'dENEMEDataSet.Tablo1' table
this.tablo1TableAdapter.Fill(this.dENEMEDataSet.Tablo1);


Can someone please help me on that issue??

Note: dENEME is the name of my access database file and tablo1 is the name of my table in that access file

New Post: Data displays in grid, Filters show correct data, but after filter is selected, data in grid is not filtered.

$
0
0
smolo's solution works great.
thx.

New Post: update every second time only

$
0
0
I'm trying to use auto-generated advancedDataGrid.
Problem is that the below shown procedure does not succeed with updating the SQL table every time... It is exactly every second Event raised... If I edit cell for the first (3rd, 5th, etc.) time (CellEndEdit event raised every time, current data picked) - SQL Table cell is not updated. It updates when I edit the DataGrid cell for the second (4th, 6th, etc.) time.
private void advancedDataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
    {
        int rowIdx = advancedDataGridView1.CurrentCell.RowIndex;
        DataRowView drv = (DataRowView)advancedDataGridView1.Rows[rowIdx].DataBoundItem;
        DataRow dr = drv.Row;
        this.levTableAdapter.Update(dr); //strange, but Update is done every second time....
    }
How to debug it?

EDIT: Looked into behaviour again and I have to update:

1st enter "A" - noChangeSQL, Event picks "A", "A" in the datagrid cell.
2nd enter "B" - "A" in SQL, Event picks "A", "A" in cell.
3rd enter "C" - "A" in SQL, Event picks "C", "C" in cell.
4rd enter "D" - "C" in SQL, Event picks "C", "C" in cell.
5th enter "E" - "C" in SQL, Event picks "E", "E" in cell.

New Post: update every second time only

$
0
0
I just got the answer somewhere else, but I post it here, to have a complete solution: https://stackoverflow.com/questions/46513792/adgv-c-sharp-datagridview-update-query-bug
        private void advancedDataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            int rowIdx = advancedDataGridView1.CurrentCell.RowIndex;
            DataRowView drv = (DataRowView)advancedDataGridView1.Rows[rowIdx].DataBoundItem;
            DataRow dr = drv.Row;
            BeginInvoke((Action)(() => SaveRowChanges(dr)));
         }

        private void SaveRowChanges(DataRow dr)
        {
            DataRow[] rows = { dr };
            this.levTableAdapter.Update(rows);
         }

New Post: external multi-column-combo-box problem

$
0
0
hello,
I wanted to use the multi-column-combo-box from
https://www.intertech.com/Blog/winforms-multi-column-combo-box-in-a-datagridview/,

but there is a problem in the Multi Column Combo after compiling
 // Set custom properties of Multi Column Combo Box.
editingControl.ColumnNames = ColumnNames;
editingControl.ColumnWidths = ColumnWidths;
editingControl.BackColorEven = EvenRowsBackColor;
editingControl.BackColorOdd = OddRowsBackColor;
editingControl.OwnerCell = this;

if (Value != null) //<--- error here
Is there any chance of finding the solution and make both extensions to cooperate?
Viewing all 198 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>