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

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 **

fixed in [release:611620]


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 **

fixed in v0.1.1.0

Closed 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: fixed in v0.1.1.0

Closed 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: fixed in v0.1.1.0

Closed Unassigned: Boolean filter not work with true and false selected [1492]

$
0
0
When you select true and false, it will only show the false part
Comments: fixed in v0.1.1.0

Source code checked in, #39ecc2629f9b6c96860bbbd2e85919968f42048d

Released: 0.1.1.0 (May 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

Released: 0.1.0.10 (May 31, 2014)

$
0
0
+ SetFilterForm "Between"-filter support filtering from min to max and from max to min values (http://adgv.codeplex.com/workitem/1347,
http://adgv.codeplex.com/workitem/1346)
+ SetFilterForm autofocus at valuecontrol after load form
+ Add automatic DataGridViewColum Sorting when Column Filter disabled (http://adgv.codeplex.com/workitem/1348)
~ Fix "filterButtonImageBounds error with scrollbar" issue (http://adgv.codeplex.com/workitem/1419)
~ Fix "An empty row is created when filtering on blanks rows" issue (http://adgv.codeplex.com/workitem/1338)
~ "SearchToolBar Control" now included in ADGV
Now you can download ADGV from NuGet (http://www.nuget.org/packages/ADGV/)

Updated Release: 0.1.0.10 (май 31, 2014)

$
0
0
+ SetFilterForm "Between"-filter support filtering from min to max and from max to min values (http://adgv.codeplex.com/workitem/1347,
http://adgv.codeplex.com/workitem/1346)
+ SetFilterForm autofocus at valuecontrol after load form
+ Add automatic DataGridViewColum Sorting when Column Filter disabled (http://adgv.codeplex.com/workitem/1348)
~ Fix "filterButtonImageBounds error with scrollbar" issue (http://adgv.codeplex.com/workitem/1419)
~ Fix "An empty row is created when filtering on blanks rows" issue (http://adgv.codeplex.com/workitem/1338)
~ "SearchToolBar Control" now included in ADGV
Now you can download ADGV from NuGet (http://www.nuget.org/packages/ADGV/)

Source code checked in, #71f0c6d4990b5d38495887421d4ea16bf92838fc

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

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: I tested loading filters in the ADGVSample. - uncheck "5" in the column "int" - save filter - clear filters - load filter Problem: the unchecked "5" is not in the filter list anymore

Created Unassigned: Pre release nuget package for 0.1.1.0 beta [1550]

$
0
0
Any chance you could you make a pre release nuget package for 0.1.1.0 beta.
It would make it easier to try out.

And update the assembly version number.

And sign the assembly.

New Comment on "Documentation"

New Post: Localization

$
0
0
yerelleştirme nasıl yapılıyor peki örnek var mı

New Post: Localization

$
0
0
Do you have an example of how much is being done localization

New Post: Localization

$
0
0
Hi!
If want to know how to do translate, use this post
BevanWeiss wrote:
I've done some localisation work on this... and have submitted it. So if zubyme gets some time he might pull my changes into the online version.

My changes include a default English language, plus the Russian language that Zubyme already had. Because it uses the resx form of localisation it should be quite trivial for anyone to add additional languages. They can just copy-paste an existing language resx, do the translation and make sure to specify the locale (ie en-GB, en-US, ru-RU, de-DE etc) in the filename when saving.. when compiled it will automatically create the appropriate language folder in the output path, along with the compiled language resource .dll

Updated Wiki: Home

$
0
0

NUGET

http://www.nuget.org/packages/ADGV/

EN

It`s a Windows Forms DataGridView Control with Excel-Like auto-filter context menu. Support Localization (currently RU, EN, FR)


RU

Windows Forms DataGridView контрол с Excel-подобным авто-фильтром в виде контекстного меню в заголовках столбцов

Работая над своим проектом, я так и не смог найти подходящий контрол для отображения табличных данных с поддержкой фильтрации и сортировки. В результате на основе ContextMenuStrip был реализован авто-фильтр "как в Excel".

adgv

Особенности:

  • Поддержка типов данных: All Numeric, DateTime, Boolean, все остальные типы интерпретируются как String
  • Сортировка
  • Пользовательский фильтр
  • Фильтр на основе выбранных значений из элемента TreeView

В комплекте с фильтром идет DataGridView, который автоматически добавляет авто-фильтр к своим столбцам и обрабатывает события фильтрации. Единственное, что требуется для работы  - это добавить BindingSource и обработать события FilterStringChanged и SortStringChanged.

Выкладываю исходный код и готовую библиотеку dll "as is". Если кто-то найдет и исправит ошибки или предложит более удачные решения буду благодарен. К сожалению времени на дальнейшую разработку нет и пока не ожидается.

Пользуйтесь как есть. Пожалуйста :)

Viewing all 198 articles
Browse latest View live


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