Click here to Skip to main content
16,004,647 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have one table in sql

<br />
Sl | Grade | Remark  <br />
1  | A     | ggggggggggggggggggg<br />
2  | B     | ddddddddddddddddddd<br />
3  | C     | dddddddddxxxxxxxxxx<br />
4  | D     | rrrrrrvvvvvvvvvvvvv<br />


Now my question is to retrieve grade from sql table by filling Sl in datagridview1 textbox.

if I fill 2 in datagridview textbox column (SL)
SL | Grade | Remark
2 | |

then It should retrieve its grade from sqltable
<br />
Sl | Grade | Remark  <br />
2  | B     | ddddddddddddddddddd<br />


What I have tried:

..................................................
Posted
Updated 14-Sep-16 4:29am
Comments
Maciej Los 14-Sep-16 4:05am    
What have you tried? Where are you stuck?
nityanand NCR 14-Sep-16 5:56am    
I don't have idea that why I asked.......
Karthik_Mahalingam 14-Sep-16 13:47pm    
check this
https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellendedit(v=vs.110).aspx
nityanand NCR 15-Sep-16 3:07am    
Sir could you please help bcz I am not getting from link..
Karthik_Mahalingam 15-Sep-16 4:22am    
post the code.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900