Noob question

May i knw about the datatype that the dataselector and the listcheckbox return?
Appreciate ur reply :lol:" border="0" alt="laugh.gif" />" alt=">" />

Comments

  • edited 6:50PM
    Hello,

    CheckedListBoxControl is a wrapper over standard winforms CheckedListBox. DataSelector is used for data filtering, you can read about it in the user's manual:
    http://fast-report.com/documentation/UserM...rhowitworks.htm
  • edited 6:50PM
    AlexTZ wrote: »
    Hello,

    CheckedListBoxControl is a wrapper over standard winforms CheckedListBox. DataSelector is used for data filtering, you can read about it in the user's manual:
    http://fast-report.com/documentation/UserM...rhowitworks.htm

    thx anyway...but i use it not onli for auto filter...I use it to pass parameter to the sql function...any idea for that?
  • edited 6:50PM
    Here is how you can get the selected rows (in the dialogue form's OK button click event):
        private void btnOk_Click(object sender, EventArgs e)
        {
          // filter the datasource
          DataSelector1.FilterData();
          // get the datasource
          DataSourceBase data = Report.GetDataSource("Employees");
          data.Init();
          
          // enumerate rows
          string s = "";
          while (data.HasMoreRows)
          {
            s += data["FirstName"].ToString() + "\r\n";
            data.Next();
          }
          
          // show the selected rows
          MessageBox.Show(s);
        }
    

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.