January 8th, 2014, 10:59 AM
Gridview with first row as textboxes
I have been googling a lot on this subject but didn't find anything that really helped me. I have a gridview and bound some data to it. For now it's nothing fancy. The thing is I want to add in the first row (under the header) some textboxes for the purpose of adding new rows.
Has anyone done this or can point me to the right direction ?
Edit: I found some sort of solution. I'm sure there's some real trick but this is going work for me I think.
I added in the code behind:
It adds a row without textboxes. I then use jquery to put a textbox when clicking in the cell and css to make it look like it's a textbox at first and when the user click outside the cell.
_dsBind = new DataSet();
_dsBind = _ObjBal.GetAll();
DataTable _dt = new DataTable();
DataRow _dr = _dt.Rows.Add();
myGridView.DataSource = _dt;
That being said if somebody has a real solution I'll be happy to try it.
January 15th, 2014, 07:20 AM
Web Design Pune- Libricon
Hi I learnt this problem but exactly we don't get right answer.
Originally Posted by onTheDev