|
-
Mar 30th, 2007, 08:50 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] command button in data grid
Can we have command button in each row of data grid (or any other control )to edit each row ?
-
Mar 30th, 2007, 09:44 PM
#2
Thread Starter
Fanatic Member
Re: command button in data grid
Please help.It's urgent.
thanks
-
Mar 30th, 2007, 11:56 PM
#3
Junior Member
Re: command button in data grid
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
-
Mar 30th, 2007, 11:58 PM
#4
Thread Starter
Fanatic Member
Re: command button in data grid
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.
-
Mar 30th, 2007, 11:59 PM
#5
Lively Member
Re: command button in data grid
U can use popup menu instead of command button ... if u wanna edit or other things
-
Mar 31st, 2007, 12:01 AM
#6
Thread Starter
Fanatic Member
Re: command button in data grid
can you give me an example
-
Mar 31st, 2007, 12:04 AM
#7
Lively Member
Re: command button in data grid
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
-
Mar 31st, 2007, 12:05 AM
#8
Thread Starter
Fanatic Member
Re: command button in data grid
No I need it it this way!. Is it not possible ? using data repeater, user control anything ???
-
Mar 31st, 2007, 12:09 AM
#9
Lively Member
Re: command button in data grid
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..
-
Mar 31st, 2007, 12:31 AM
#10
Junior Member
Re: command button in data grid
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
-
Apr 3rd, 2007, 02:04 PM
#11
Addicted Member
Re: command button in data grid
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)?
-
Apr 3rd, 2007, 02:44 PM
#12
Member
Re: command button in data grid
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??
-
Apr 3rd, 2007, 04:59 PM
#13
Addicted Member
Re: command button in data grid
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.
-
Apr 6th, 2007, 10:56 PM
#14
Thread Starter
Fanatic Member
Re: command button in data grid
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..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|