Click here to Skip to main content
15,884,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Multiple files to be attached in a single click in asp.net Pin
archie@hyd7-Apr-09 3:06
archie@hyd7-Apr-09 3:06 
GeneralRe: Multiple files to be attached in a single click in asp.net Pin
Yusuf7-Apr-09 4:52
Yusuf7-Apr-09 4:52 
QuestionPass by Reference into a borland C++ dll Pin
Sunuaj7-Apr-09 0:58
Sunuaj7-Apr-09 0:58 
AnswerRe: Pass by Reference into a borland C++ dll Pin
Christian Graus7-Apr-09 1:15
protectorChristian Graus7-Apr-09 1:15 
AnswerRe: Pass by Reference into a borland C++ dll Pin
anilpal7-Apr-09 1:21
anilpal7-Apr-09 1:21 
GeneralRe: Pass by Reference into a borland C++ dll Pin
Sunuaj7-Apr-09 2:15
Sunuaj7-Apr-09 2:15 
GeneralRe: Pass by Reference into a borland C++ dll Pin
Yusuf7-Apr-09 4:56
Yusuf7-Apr-09 4:56 
QuestionGrid View search filter bubble event problem Pin
Sasmi_Office7-Apr-09 0:24
Sasmi_Office7-Apr-09 0:24 
i created an GridView and fill it using Dataset as datasource it's working fine, after that i want to provide filter for that GridData, so i place an dropdown control at the header column where i want to give filter for user, after that i want to fill that control and on selection changed event i want to refill the gridview control using that selected value as filter criteria, for this purpose i use grd_RowDataBound() event of "grd" where i use following code to fill that DropDown control "drp"

protected void grd_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
if (e.Row.RowType == DataControlRowType.Header)
{
DropDownList _Drp = (DropDownList)e.Row.FindControl("drp");
DataView DV = (DataView)this.grdCurrency.DataSource;
_Currency.DataSource = DV;
_Currency.DataTextField = DV.Table.Columns["Column1"].ColumnName;
_Currency.DataValueField = DV.Table.Columns["Column2"].ColumnName;
_Currency.DataBind();
ListItem _item = new ListItem("All", "0");
_Currency.Items.Insert(0, _item);
_Currency.SelectedIndex = 0;
}
}
catch (Exception ex)
{
//show user friendly error.
}
}

and code for DropDown selected index change as following

protected void drp_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
foreach (GridViewRow Row in this.grd.Rows)
{
DropDownList _drp = (DropDownList)this.grdCurrency.Rows[0].FindControl("drp");
string _C = _drp.SelectedItem.Text;

string _Filter = (string.IsNullOrEmpty(_C)) ? "[Column1] = '" + _C + "'" : string.Empty;

string filter = string.Empty;
filter = _Filter;

DataView DV = (DataView)this.grd.DataSource;
DV.RowFilter = filter;
this.grd.DataBind();
}
}
catch (Exception ex)
{
//show user friendly error.
}
}

but when i test this code i found the "grd_RowDataBound()" event fire and refill the DropDown control where as it should filter the data and refill the DropDown Control with the existing data as per the GridView Control.

i think the bubble event fire and refill the DropDown Control where as i want to Filter the Grid with the filter of drp control event and then refill the DropDown control with the data presented in that gridview.

please help me regard this thanks and regards.

Sasmi
Questionreponse .redirect problem Pin
venu6567-Apr-09 0:23
venu6567-Apr-09 0:23 
AnswerRe: reponse .redirect problem Pin
Christian Graus7-Apr-09 0:34
protectorChristian Graus7-Apr-09 0:34 
GeneralRe: reponse .redirect problem Pin
venu6567-Apr-09 0:42
venu6567-Apr-09 0:42 
GeneralRe: reponse .redirect problem Pin
Christian Graus7-Apr-09 0:44
protectorChristian Graus7-Apr-09 0:44 
QuestionRegarding Regular Expression Pin
dayakar_dn7-Apr-09 0:10
dayakar_dn7-Apr-09 0:10 
AnswerRe: Regarding Regular Expression Pin
Christian Graus7-Apr-09 0:46
protectorChristian Graus7-Apr-09 0:46 
QuestionFile Upload Encryption Pin
vivek_r7-Apr-09 0:05
vivek_r7-Apr-09 0:05 
AnswerRe: File Upload Encryption Pin
anilpal7-Apr-09 1:13
anilpal7-Apr-09 1:13 
AnswerRe: File Upload Encryption Pin
Right Handed Monkey7-Apr-09 1:57
Right Handed Monkey7-Apr-09 1:57 
QuestionHow to Access user entered values from runtime generated textboxes Pin
krishnaveer6-Apr-09 23:50
krishnaveer6-Apr-09 23:50 
AnswerRe: How to Access user entered values from runtime generated textboxes Pin
Christian Graus7-Apr-09 0:47
protectorChristian Graus7-Apr-09 0:47 
AnswerRe: How to Access user entered values from runtime generated textboxes Pin
Zia Ul Haq Soofi7-Apr-09 2:13
Zia Ul Haq Soofi7-Apr-09 2:13 
QuestionQuerystring? urgent Pin
Karthick_gc6-Apr-09 22:52
Karthick_gc6-Apr-09 22:52 
AnswerRe: Querystring? urgent Pin
Abhishek Sur6-Apr-09 23:03
professionalAbhishek Sur6-Apr-09 23:03 
GeneralRe: Querystring? urgent Pin
Karthick_gc6-Apr-09 23:13
Karthick_gc6-Apr-09 23:13 
GeneralRe: Querystring? urgent Pin
Zia Ul Haq Soofi7-Apr-09 0:12
Zia Ul Haq Soofi7-Apr-09 0:12 
AnswerRe: Querystring? urgent Pin
anilpal6-Apr-09 23:22
anilpal6-Apr-09 23:22 

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.