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

Commented Unassigned: Project in visual basic [1418]

$
0
0
Hello
Please it could facilitate the project in vb?
Thanks
Comments: ** Comment from web user: Zubyme **

By now you can disable filter for some column and click header next to do sorting. Check sample "int" column.
May be in next release i will change sort/filter on/off. Maybe enum columntype: Filter, Sorting, Both, None instead of EnableFilter method


Created Unassigned: ADGV with Entity Framework [1530]

Created Unassigned: Boolean filter not working for column names that are numbers [1531]

$
0
0
ColumnName = "6060"
Type=Bool
Filter String "6060=True" does not work, whereas "[6060]=True" works.
solution:
in ADGVFilterMenu.cs:
private void okButton_Click(object sender, EventArgs e)
....
else if (this.DataType == typeof(Boolean))
this.FilterString += "[{0}]=" + filter;

the [ ] where missing in this line

Created 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.

Created Unassigned: Search TextBox for TreeView in FilterMenu [1533]

$
0
0
In Excel there is also a Textbox above the TreeView in the FilterMenu Popup which allows filtering the items displayed in the TreeView.
Whould it be possible to implement a TextBox with this function?

Commented Unassigned: ADGV with Entity Framework and make filters fast [1530]

$
0
0
Hi,
Great work with the ADGV! :)

I have used the Entity Framework to generate model class from the database. I use this model as the datasource of my ADGV. The model has correct data types for the columns but ADGV does not detect that and shows me text filters for all columns.

Take for example the "amount_local_netto" column in the attached images. It has the type "System.Decimal" but it shows the Text filter.

I have noticed one thing though. If I deliberately change its column.ValueType property to typeof(decimal) in Designer.cs when the columns are being added, then it shows me the correct filter.

What could be the problem here? Also, for too many distinct values in a column, the drop-down shows after a big lag. Do you have any good idea to make that faster?

Thank you and I look forward to your response.
Comments: ** Comment from web user: burni83 **

maybe because the type is decimal? ( is the same as Nullable<decimal>) and not decimal

in the code the check is
this.DataType == typeof(Decimal)

Commented Unassigned: ADGV with Entity Framework and make filters fast [1530]

$
0
0
Hi,
Great work with the ADGV! :)

I have used the Entity Framework to generate model class from the database. I use this model as the datasource of my ADGV. The model has correct data types for the columns but ADGV does not detect that and shows me text filters for all columns.

Take for example the "amount_local_netto" column in the attached images. It has the type "System.Decimal" but it shows the Text filter.

I have noticed one thing though. If I deliberately change its column.ValueType property to typeof(decimal) in Designer.cs when the columns are being added, then it shows me the correct filter.

What could be the problem here? Also, for too many distinct values in a column, the drop-down shows after a big lag. Do you have any good idea to make that faster?

Thank you and I look forward to your response.
Comments: ** Comment from web user: syedaliammar **

I did the following:

1. Changed data type of _amount_local_netto_ property to "decimal" in the TableName.cs file
2. Set Nullable property of _amount_local_netto_ to False in the table model

Did not work. I also tried adding a check for "this.DataType == typeof(Nullable<decimal>)" in the ADGV source, then rebuilt the DLL and added it to my project again which also did not work.

Is there anything that you might need from me?

Best.

Commented Unassigned: Boolean filter not working for column names that are numbers [1531]

$
0
0
ColumnName = "6060"
Type=Bool
Filter String "6060=True" does not work, whereas "[6060]=True" works.
solution:
in ADGVFilterMenu.cs:
private void okButton_Click(object sender, EventArgs e)
....
else if (this.DataType == typeof(Boolean))
this.FilterString += "[{0}]=" + filter;

the [ ] where missing in this line
Comments: ** Comment from web user: Zubyme **

thanks, will be fixed in next release


Commented Unassigned: Search TextBox for TreeView in FilterMenu [1533]

$
0
0
In Excel there is also a Textbox above the TreeView in the FilterMenu Popup which allows filtering the items displayed in the TreeView.
Whould it be possible to implement a TextBox with this function?
Comments: ** Comment from web user: Zubyme **

try to do it in the release after next

Commented Unassigned: ADGV with Entity Framework and make filters fast [1530]

$
0
0
Hi,
Great work with the ADGV! :)

I have used the Entity Framework to generate model class from the database. I use this model as the datasource of my ADGV. The model has correct data types for the columns but ADGV does not detect that and shows me text filters for all columns.

Take for example the "amount_local_netto" column in the attached images. It has the type "System.Decimal" but it shows the Text filter.

I have noticed one thing though. If I deliberately change its column.ValueType property to typeof(decimal) in Designer.cs when the columns are being added, then it shows me the correct filter.

What could be the problem here? Also, for too many distinct values in a column, the drop-down shows after a big lag. Do you have any good idea to make that faster?

Thank you and I look forward to your response.
Comments: ** Comment from web user: Zubyme **

if you can please send me you source code and some sample data for filtering

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: ** Comment from web user: Zubyme **

maybe add feature to save current selected filter of each filtermenu in this menu`s custom filters?

Created Release: 0.1.1.0

$
0
0
issue fixs #1531, #1492, #1530, #1418(last comment), maybe #1532

Commented Unassigned: ADGV with Entity Framework and make filters fast [1530]

$
0
0
Hi,
Great work with the ADGV! :)

I have used the Entity Framework to generate model class from the database. I use this model as the datasource of my ADGV. The model has correct data types for the columns but ADGV does not detect that and shows me text filters for all columns.

Take for example the "amount_local_netto" column in the attached images. It has the type "System.Decimal" but it shows the Text filter.

I have noticed one thing though. If I deliberately change its column.ValueType property to typeof(decimal) in Designer.cs when the columns are being added, then it shows me the correct filter.

What could be the problem here? Also, for too many distinct values in a column, the drop-down shows after a big lag. Do you have any good idea to make that faster?

Thank you and I look forward to your response.
Comments: ** Comment from web user: syedaliammar **

Hi Zuby,
Since the max upload size for an attachment is 4 mb, I cannot upload my project which is 10 mb. I am now sending it to you per email.

Thank you!

Commented Unassigned: ADGV with Entity Framework and make filters fast [1530]

$
0
0
Hi,
Great work with the ADGV! :)

I have used the Entity Framework to generate model class from the database. I use this model as the datasource of my ADGV. The model has correct data types for the columns but ADGV does not detect that and shows me text filters for all columns.

Take for example the "amount_local_netto" column in the attached images. It has the type "System.Decimal" but it shows the Text filter.

I have noticed one thing though. If I deliberately change its column.ValueType property to typeof(decimal) in Designer.cs when the columns are being added, then it shows me the correct filter.

What could be the problem here? Also, for too many distinct values in a column, the drop-down shows after a big lag. Do you have any good idea to make that faster?

Thank you and I look forward to your response.
Comments: ** Comment from web user: syedaliammar **

Infact, it is better that I put it on dropbox with public access. Here's the [link](https://www.dropbox.com/s/hx9ot5hxkebf6b3/ADGVTest.zip?dl=0)
Thanks for helping!

Commented Unassigned: ADGV with Entity Framework and make filters fast [1530]

$
0
0
Hi,
Great work with the ADGV! :)

I have used the Entity Framework to generate model class from the database. I use this model as the datasource of my ADGV. The model has correct data types for the columns but ADGV does not detect that and shows me text filters for all columns.

Take for example the "amount_local_netto" column in the attached images. It has the type "System.Decimal" but it shows the Text filter.

I have noticed one thing though. If I deliberately change its column.ValueType property to typeof(decimal) in Designer.cs when the columns are being added, then it shows me the correct filter.

What could be the problem here? Also, for too many distinct values in a column, the drop-down shows after a big lag. Do you have any good idea to make that faster?

Thank you and I look forward to your response.
Comments: ** Comment from web user: Zubyme **

Thank you. I will post new release as soon as I can!
[0.1.1.0](https://adgv.codeplex.com/releases/view/611620)


Created Unassigned: Exception thrown when filtering on strings with curly braces. [1549]

$
0
0
Thanks for creating and sharing such a great component!

I found that the ADGV had problems filtering strings which had curly braces in them. Since cell string values are later used within the format string passed to StringBuilder.AppendFormat an exception would occur.

I modified the FormatString method in ADGVFilterMenu.cs to escape curly braces in format strings by doubling up on them:

``` C#
private String FormatString(String Text)
{
String result = "";
String s;
String[] replace = { "%", "[", "]", "*", "\"", "`", "\\" };

for (Int32 i = 0; i < Text.Length; i++)
{
s = Text[i].ToString();
if (replace.Contains(s))
result += "[" + s + "]";
else if (s == "{")
result += "{{";
else if (result == "}")
result += "}}";
else
result += s;
}

return result.Replace("'", "''");
}
```

Commented Unassigned: Exception thrown when filtering on strings with curly braces. [1549]

$
0
0
Thanks for creating and sharing such a great component!

I found that the ADGV had problems filtering strings which had curly braces in them. Since cell string values are later used within the format string passed to StringBuilder.AppendFormat an exception would occur.

I modified the FormatString method in ADGVFilterMenu.cs to escape curly braces in format strings by doubling up on them:

``` C#
private String FormatString(String Text)
{
String result = "";
String s;
String[] replace = { "%", "[", "]", "*", "\"", "`", "\\" };

for (Int32 i = 0; i < Text.Length; i++)
{
s = Text[i].ToString();
if (replace.Contains(s))
result += "[" + s + "]";
else if (s == "{")
result += "{{";
else if (result == "}")
result += "}}";
else
result += s;
}

return result.Replace("'", "''");
}
```
Comments: ** Comment from web user: arstorey **

Oops... the changed function should be:

```c#
private String FormatString(String Text)
{
String result = "";
String s;
String[] replace = { "%", "[", "]", "*", "\"", "`", "\\" };

for (Int32 i = 0; i < Text.Length; i++)
{
s = Text[i].ToString();
if (replace.Contains(s))
result += "[" + s + "]";
else if (s == "{")
result += "{{";
else if (s == "}")
result += "}}";
else
result += s;
}

return result.Replace("'", "''");
}
```

Commented Unassigned: Exception thrown when filtering on strings with curly braces. [1549]

$
0
0
Thanks for creating and sharing such a great component!

I found that the ADGV had problems filtering strings which had curly braces in them. Since cell string values are later used within the format string passed to StringBuilder.AppendFormat an exception would occur.

I modified the FormatString method in ADGVFilterMenu.cs to escape curly braces in format strings by doubling up on them:

``` C#
private String FormatString(String Text)
{
String result = "";
String s;
String[] replace = { "%", "[", "]", "*", "\"", "`", "\\" };

for (Int32 i = 0; i < Text.Length; i++)
{
s = Text[i].ToString();
if (replace.Contains(s))
result += "[" + s + "]";
else if (s == "{")
result += "{{";
else if (result == "}")
result += "}}";
else
result += s;
}

return result.Replace("'", "''");
}
```
Comments: ** Comment from web user: Zubyme **

Hi arstorey!
Can you test following code instead?

```
private String FormatString(String Text)
{
return Text.Replace("'", "''").Replace("{", "{{").Replace("}", "}}");
}
```
I think that we realy dont need all this replace = { "%", "[", "]", "*", "\"", "`", "\\" } symbols
Also dont forget to change FormatString(String Text) method in SetFilterForm class

Thank you that you have found this bug!

Released: 0.1.1.0 (svi 13, 2015)

$
0
0
It`s a prerelease. Please be careful and and give you feedback

fixed
new
  • ADGVColumnHeaderCellBehavior - allow hide, disable filter/sort
  • ADGVFilterMenuDateTimeGrouping - allow grouping DateTime filter by years, month, days, etc.

change

Updated Release: 0.1.1.0 (май 13, 2015)

$
0
0
It`s a prerelease. Please be careful and and give you feedback

fixed
new
  • ADGVColumnHeaderCellBehavior - allow hide, disable filter/sort
  • ADGVFilterMenuDateTimeGrouping - allow grouping DateTime filter by years, month, days, etc.

change
Viewing all 198 articles
Browse latest View live


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