K
kylin
view=myDal.LoadAll().Tables[SortData.SORT_TABLE].DefaultView;
//view.RowFilter="ParentID="+int.Parse(ddlSort.SelectedValue.ToString());
view.RowFilter="ParentID=1"; //This Line is Ok !
dgSort.DataSource=view;
dgSort.DataBind();
Just like the notes ,
if I use "
view.RowFilter="ParentID="+int.Parse(ddlSort.SelectedValue.ToString()); "
errors
but "view.RowFilter="ParentID=1"; " is okey ?
why ?
//view.RowFilter="ParentID="+int.Parse(ddlSort.SelectedValue.ToString());
view.RowFilter="ParentID=1"; //This Line is Ok !
dgSort.DataSource=view;
dgSort.DataBind();
Just like the notes ,
if I use "
view.RowFilter="ParentID="+int.Parse(ddlSort.SelectedValue.ToString()); "
errors
but "view.RowFilter="ParentID=1"; " is okey ?
why ?