Can we have command button in each row of data grid (or any other control )to edit each row ?
Printable View
Can we have command button in each row of data grid (or any other control )to edit each row ?
Please help.It's urgent.
thanks
Hey amrita,
u want command button within the Data grid control??????
whats ur purpose ....
i think u wanna edit selected row & 4 that u wanna command button right??
Jicks
Yes .I want to edit each row with individual command button.
I have tried using a user control with data repeater. When the edit button is clicked a new form pops up. and It should edit a text box.
U can use popup menu instead of command button ... if u wanna edit or other things
can you give me an example
why not u use only single button to edit. place a button with caption edit at the bottom of form below the grid. user has to select row and press edit button :)
No I need it it this way!. Is it not possible ? using data repeater, user control anything ???
it doesnt make sence to have edit button with every row of grid... u can another thing like if user double click the grid row then program withh show the edit form..
i think Xium is right i totally agree with him
look if u have 100 rows then u have to place 100 command button next to each row and it doesnt make any sense to put more command buttons...
u wanna edit selected row right?
then as Xium suggested place one command button and select row which u wanna edit press edit button
or u can use vb.net with datagridview control...
Jicks
Okay, that makes total sense. Now, I will ask a question. Using that theory of placing one Edit Button, how do I program that Edit button to display the selected row on an Edit Form (seperate form)?
change the
allowdataentry and allowdatadelete property of ur datagrid to TRUE
u can just click on the datagrid and change or edit data
and amrita ru indian??
That is not what I meant. I want to click on a row, and it bring up another form with the data filled into pre-determined text boxes seperate from the data grid view.
My problem is solved.I've created a control array.and repeate the array as per the record count.
thanks for ur suggestions
but i needed it in that way only..