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

ASP.NET

 
QuestionFusion widgets in vb.net urgent Pin
Josna.O7-Apr-09 1:39
Josna.O7-Apr-09 1:39 
AnswerRe: Fusion widgets in vb.net urgent Pin
mr_muskurahat7-Apr-09 2:57
mr_muskurahat7-Apr-09 2:57 
AnswerRe: Fusion widgets in vb.net urgent Pin
Yusuf7-Apr-09 4:49
Yusuf7-Apr-09 4:49 
Questionhow can i set the visibility of a button inside a grid view programatically. Pin
souravghosh187-Apr-09 1:11
souravghosh187-Apr-09 1:11 
AnswerRe: how can i set the visibility of a button inside a grid view programatically. Pin
anilpal7-Apr-09 1:15
anilpal7-Apr-09 1:15 
GeneralRe: how can i set the visibility of a button inside a grid view programatically. Pin
souravghosh187-Apr-09 1:27
souravghosh187-Apr-09 1:27 
GeneralRe: how can i set the visibility of a button inside a grid view programatically. Pin
anilpal7-Apr-09 1:32
anilpal7-Apr-09 1:32 
QuestionMultiple files to be attached in a single click in asp.net Pin
archie@hyd7-Apr-09 1:03
archie@hyd7-Apr-09 1:03 
AnswerRe: Multiple files to be attached in a single click in asp.net Pin
Christian Graus7-Apr-09 1:18
protectorChristian Graus7-Apr-09 1:18 
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 

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.