Click here to Skip to main content
15,887,975 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear all,

I have bind the GridView by DataTable Source. Now I want click on one cell,Than I write Some Text within cell without Edit Button. Ending Write Text Auto Event fire for Update of that Cell.

Is it Possible.


Example:
C#
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[3] { new DataColumn("Id", typeof(int)),
new DataColumn("Name", typeof(string)),
new DataColumn("Country",typeof(string)) });
dt.Rows.Add(1, "John Hammond", "United States");
dt.Rows.Add(2, "Mudassar Khan", "India");
dt.Rows.Add(3, "Suzanne Mathews", "France");
dt.Rows.Add(4, "Robert Schidner", "Russia");
GridView1.DataSource = dt;
GridView1.DataBind();



After Bind this GridView1, I click on country Cell,I can write Some Text within this cell. Finis My Write Auto Fire this cell Event And update in Database. How Can Done This.
Posted
Updated 11-Aug-14 19:22pm
v2
Comments
Thanks7872 12-Aug-14 1:23am    
Why? What is the use of the text you are suppose to enter after clicking that cell?
Member 9245259 12-Aug-14 1:55am    
I want write some text within cell of Gridview.

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