本文整理汇总了C#中ASPxGridViewCustomCallbackEventArgs类的典型用法代码示例。如果您正苦于以下问题:C#ASPxGridViewCustomCallbackEventArgs类的具体用法?C#ASPxGridViewCustomCallbackEventArgs怎么用?C#ASPxGridViewCustomCallbackEventArgs使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:ASPxGridView1_CustomCallback
protectedvoidASPxGridView1_CustomCallback(objectsender,ASPxGridViewCustomCallbackEventArgse)
{
inti=0;
if(e.Parameters.IndexOf("stock")>=0)
{
Session["ssFilterStock"]=e.Parameters.Replace("stock","");
ASPxGridView1.DataBind();
}
if(e.Parameters.IndexOf("productcategory")>=0)
{
Session["ssFilterProduceCatetory"]="categoryid="+e.Parameters.Replace("productcategory","");
if(e.Parameters.Replace("productcategory","")=="-1")
Session["ssFilterProduceCatetory"]="";
i=1;
}
if(i==1)
{
SqlDataSource1.DataBind();
FilterExpression=Session["ssFilterProduceCatetory"].ToString();
if(FilterExpression.Length>0)
SqlDataSource1.FilterExpression=FilterExpression;
ASPxGridView1.DataBind();
}
else
gridCallBackOption(ASPxGridView1,e.Parameters,KeyFieldName,SqlDataSource1);
}
原文链接:
http://www.jxszl.com/biancheng/C/556581.html