why unable to type letters in datagridview

Posted by Oswaldlily under VB.NET on 4/3/2014 | Points: 10 | Views : 690 | Status : [Member] | Replies : 2
When I enter datagridview cell,sometimes i am unable to type letters using mouse click..In this case,if i use (keyboard click) key arrows by navigating to same cell,i can type well...




Responses

Posted by: Saranpselvam on: 4/7/2014 [Member] Starter | Points: 25

Up
0
Down
Please post your code

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 4/7/2014 [Member] [MVP] Silver | Points: 25

Up
0
Down
Try the below code:-

datagrd.DataSource = dt;
for (int i = 0; i < datagrd.ColumnCount; i++)
{
datagrd.Columns[i].ReadOnly = true;
}


Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response