1 Replies - 540 Views - Last Post: 30 January 2013 - 07:39 AM Rate Topic: -----

#1 navzgustav  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 29-January 13

how to make datagrid cells readonly

Posted 30 January 2013 - 02:19 AM

how do i make my datagridview cells readonly but responde to mouse clicks....Am populating the datagrid using a dataset
Is This A Good Question/Topic? 0
  • +

Replies To: how to make datagrid cells readonly

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5529
  • View blog
  • Posts: 11,839
  • Joined: 02-June 10

Re: how to make datagrid cells readonly

Posted 30 January 2013 - 07:39 AM

You could handle the .KeyPress event, mark it is e.Handled = true; and return so that nothing changes.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1