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.
Comments
private void btnOk_Click(object sender, EventArgs e)
{
DataSelector1.FilterData();
TableDataSource table = Report.GetDataSource("Table1") as TableDataSource;
table.Init();
// selectedItems will contain a list of selected items, like "Item1", "Item2", "Item3"
string selectedItems = "";
table.First();
while (table.HasMoreRows)
{
selectedItems += "\"" + table["firma"].ToString() + "\", ";
table.Next();
}
if (selectedItems.EndsWith(", "))
selectedItems = selectedItems.Remove(selectedItems.Length - 2);
// now change the sql text of the Table datasource
table = Report.GetDataSource("Table") as TableDataSource;
table.SelectCommand = "select * from fason where firma in (" + selectedItems + ")";
selectedItems += "'" + table["firma"].ToString() + "', ";
select * from table where field = @param1
Set up parameter:
Name = param1
DataType = DateTime
Expression = DateTimePicker1.Value
DefaultValue = 1/1/2000
table.SelectCommand = "select * from table where field = '" + DateTimePicker1.Value.ToString("MM/dd/yyyy") + "'";
Try to write the following code in your OK button handler:
MessageBox.Show(DateTimePicker1.Value.ToString("MM/dd/yyyy"));
what do you see when clicking OK button?