Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unselectable datagridview?

Status
Not open for further replies.

YvonneTsang

Programmer
Sep 28, 2001
37
CA
Hi I am querying my database for a series of records. The number of records displayed is variable based on the search criteria. I am currently loading it into a datagridview and dynamically adding columns for each record that is found(the numbers of rows will always stay the same). This is a Windows application.

However the problem comes up in that I dont want the user to be able to select a cell or row. I just want it to be shown as data. I can make the rows unsortable and read-only but it bugs me that they can still select rows, columns and cells. Is there something else I can use? If this was just an html app it would be easy with a table and/or a placeholder which I can just add items into. However being a windows application I cant figure out something similar to that. They way the data is presented is acceptable but I think it can just be done in a more efficient manner.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top