This is a migrated thread and some comments may be shown as answers.

Cyustom filter

3 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 12 May 2008, 10:52 AM
I have problem with creating custom filter. I have created connection to database which has this kind of tables  (cityID, cityName, countryID, country Name).

I need to have cityID and cityName in one cell, same as country. I have created GridTemplate with that values.

My filter shoul look like this:
When i give integer number  it should filter by ID, when I give some string I shoul filter by name.

Is it possible to do with some kind of custom filter.

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 12 May 2008, 11:49 AM
Hi,

Go through the following code library link.
Individual filtering and sorting for "sub-columns" in template column

Shinu.
0
Martin
Top achievements
Rank 1
answered on 13 May 2008, 07:19 AM
Thank you for help.
0
Martin
Top achievements
Rank 1
answered on 13 May 2008, 09:02 AM
However I need some solution without keeping something in HttpContext.Current.Session or ViewState.




Tags
Grid
Asked by
Martin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Martin
Top achievements
Rank 1
Share this question
or