Beispiel #1
0
    private DataSet GetDataGridSource()
    {
        string where = "Owner=N'{0}'";
        where        = string.Format(where, CurrentUser.UserName);
        if (this.WildCard != "")
        {
            where = where + string.Format(" And (Title like N'%{0}%' or Body like N'%{0}%' or Sender  like N'%{0}%')", WildCard);
        }

        DataSet ds = MessageBLL.GetReceivedMessagePagingitems(this.PagingControl1.ListRecordNumPerPage, this.PagingControl1.CurrentPage, where);

        return(ds);
    }