Click here to Skip to main content
16,005,734 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Cannot bind to the new display member. Pin
Venkatesh Mookkan10-Feb-08 23:28
Venkatesh Mookkan10-Feb-08 23:28 
GeneralSystem.Drawing.Image to System.web.UI.Image Pin
VanithaVasu10-Feb-08 22:42
VanithaVasu10-Feb-08 22:42 
GeneralRe: System.Drawing.Image to System.web.UI.Image Pin
Piyush Vardhan Singh10-Feb-08 22:56
Piyush Vardhan Singh10-Feb-08 22:56 
GeneralRe: System.Drawing.Image to System.web.UI.Image Pin
Venkatesh Mookkan10-Feb-08 23:36
Venkatesh Mookkan10-Feb-08 23:36 
GeneralRe: System.Drawing.Image to System.web.UI.Image [modified] Pin
VanithaVasu11-Feb-08 0:08
VanithaVasu11-Feb-08 0:08 
GeneralRe: System.Drawing.Image to System.web.UI.Image Pin
Venkatesh Mookkan11-Feb-08 0:32
Venkatesh Mookkan11-Feb-08 0:32 
GeneralRe: System.Drawing.Image to System.web.UI.Image Pin
Aurelius166412-Feb-08 3:04
Aurelius166412-Feb-08 3:04 
QuestionFiltering gridview data by column name in dropdown.......... Pin
pranavcool10-Feb-08 22:27
pranavcool10-Feb-08 22:27 
Hi,
I have a dropdown,textbox,"Go" button and a gridview.I have bind the dropdownlist with the column name that appear in gridview.I have written the following code for binding the dropdownlist with the column that appears in the gridview and call that method on the page load.


public void GetColumnName()
{
try
{
for (int i = 0; i < GridView1.Columns.Count; i++)
{
if (GridView1.Columns[i].Visible == true)
{
DropDownList2.Items.Insert(i, GridView1.Columns[i].HeaderText);
}
}
DropDownList2.Items.Insert(0, "-- Search By --");
}
catch (Exception ex)
{
lblMsg.Text = "The following Error has Occured:- " + ex.Message;
}
}



Now i want to filter the data in the gridview.If user select a particular column name from the dropdownlist and enter some text in to the textbox and click the "Go buton",the grid view should filter the data according to that column name which user has selected in the dropdown and the text that the user has enter in to the textbox and show it in the gridview.

Please let me know how to filter the data in gridview by column name.Currently i am in the middle of the project.Please explain by giving some example or by providing some useful link related to this topic so that i can refere to.

Thanks&Regards
Pranav dave

Pranav Dave

QuestionProblem with WebConfig File Pin
varshavmane10-Feb-08 22:05
varshavmane10-Feb-08 22:05 
Generalselecting the items from dynamically generated radion button list controls Pin
rameshdontagani10-Feb-08 21:13
rameshdontagani10-Feb-08 21:13 
GeneralRe: selecting the items from dynamically generated radion button list controls Pin
Abhijit Jana10-Feb-08 22:05
professionalAbhijit Jana10-Feb-08 22:05 
GeneralRe: selecting the items from dynamically generated radion button list controls Pin
Sun Rays11-Feb-08 0:09
Sun Rays11-Feb-08 0:09 
GeneralRe: selecting the items from dynamically generated radion button list controls Pin
rameshdontagani11-Feb-08 0:26
rameshdontagani11-Feb-08 0:26 
GeneralRe: selecting the items from dynamically generated radion button list controls Pin
Paddy Boyd11-Feb-08 0:44
Paddy Boyd11-Feb-08 0:44 
GeneralThe request failed with HTTP status 404: Not Found. Pin
shabi uz zaman10-Feb-08 19:52
shabi uz zaman10-Feb-08 19:52 
GeneralRe: The request failed with HTTP status 404: Not Found. Pin
Venkatesh Mookkan10-Feb-08 20:44
Venkatesh Mookkan10-Feb-08 20:44 
QuestionIIS using external IP Address Pin
Muammar©10-Feb-08 19:50
Muammar©10-Feb-08 19:50 
AnswerRe: IIS using external IP Address Pin
Venkatesh Mookkan10-Feb-08 20:48
Venkatesh Mookkan10-Feb-08 20:48 
GeneralRe: IIS using external IP Address Pin
Muammar©10-Feb-08 21:01
Muammar©10-Feb-08 21:01 
NewsRe: IIS using external IP Address Pin
Venkatesh Mookkan10-Feb-08 21:43
Venkatesh Mookkan10-Feb-08 21:43 
GeneralRe: IIS using external IP Address Pin
Muammar©10-Feb-08 22:24
Muammar©10-Feb-08 22:24 
GeneralRe: IIS using external IP Address Pin
Venkatesh Mookkan10-Feb-08 23:26
Venkatesh Mookkan10-Feb-08 23:26 
GeneralRe: IIS using external IP Address Pin
Muammar©10-Feb-08 23:41
Muammar©10-Feb-08 23:41 
GeneralRe: IIS using external IP Address Pin
Venkatesh Mookkan11-Feb-08 0:10
Venkatesh Mookkan11-Feb-08 0:10 
GeneralPush Page Code Pin
Syed Ali Raza10-Feb-08 19:09
Syed Ali Raza10-Feb-08 19:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.