how to use datagridview cell as textbox?

Posted by Vforvijay under VB.NET on 3/5/2011 | Points: 10 | Views : 11791 | Status : [Member] | Replies : 4
hi...how to validate the entered value in datgridview cell,i want to use datagrid cell as textbox i have no idea about this one...plz anyone reply me proper code to use cell as textbox




Responses

Posted by: Prabhakar on: 3/5/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
hi Vforvijay

check this link it's use full for you . . editable grid a the solution for u


http://msdn.microsoft.com/en-us/library/ms972948.aspx

Best Regard's
Prabhakar

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

Posted by: Vforvijay on: 3/5/2011 [Member] Starter | Points: 25

Up
0
Down
prabhakar..

i need in windows applications


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

Posted by: Karthikanbarasan on: 3/5/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Check this link

http://www.codeguru.com/forum/archive/index.php/t-416029.html

Thanks
Karthik
www.f5Debug.net

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

Posted by: Madhu.b.rokkam on: 3/6/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Add this line to dataGridView_CellLeave event
dataGridView.CurrentCell.EditedFormattedValue.ToString()

this will return you the text that you entered so that you can use your validation logic upon this value.


Thanks and Regards
Madhu

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

Login to post response