3
Answers

Loading data from Access to Datagridview

Bob Garon

Bob Garon

1y
810
1

hi,

I was able to display the contents of a certain table with Date/Time Extended field. My problem is when viewing, the datagridview, the dates were late by exactly one month! Any help would be appreciated. thanks!

            connection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + strAccessPath + ";Persist Security Info=False;");
            dataAdapter = new OleDbDataAdapter("SELECT * FROM BERData", connection);
            dataTable = new System.Data.DataTable();
            dataAdapter.Fill(dataTable);

            dataGridView1.DataSource = dataTable;

access:

datagridview:

Answers (3)
0
Jayraj Chhaya

Jayraj Chhaya

315 6k 92.9k 1y

When selecting text in HTML, the text selection endpoint, also known as the text selection caret or cursor, is responsible for indicating the end of the selected text. However, there are cases where this endpoint may disappear when the selection reaches the start of the next line.

This behavior occurs because the text selection endpoint is positioned at the end of the line, and when the selection crosses over to the next line, the endpoint is no longer visible. It is important to note that this behavior is specific to certain browsers and may not be consistent across all platforms.

To address this issue, you can use CSS to modify the appearance of the text selection endpoint. By applying a custom style to the ::selection pseudo-element, you can control the visual representation of the selected text, including the endpoint.

Here's an example of how you can modify the text selection endpoint using CSS:

::selection {
  background-color: #007bff; /* Change the background color to your preference */
  color: #ffffff; /* Change the text color to your preference */
  caret-color: #007bff; /* Change the caret color to your preference */
}

By specifying the desired background color, text color, and caret color, you can customize the appearance of the text selection endpoint to ensure it remains visible even when crossing over to the next line.