Results 1 to 14 of 14

Thread: [RESOLVED] command button in data grid

  1. #1

    Thread Starter
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Resolved [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 ?

  2. #2

    Thread Starter
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: command button in data grid

    Please help.It's urgent.

    thanks

  3. #3
    Junior Member Jicks's Avatar
    Join Date
    Sep 2006
    Posts
    30

    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

  4. #4

    Thread Starter
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    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.

  5. #5
    Lively Member Xium's Avatar
    Join Date
    Jan 2007
    Posts
    78

    Re: command button in data grid

    U can use popup menu instead of command button ... if u wanna edit or other things
    Hassan Khan

  6. #6

    Thread Starter
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: command button in data grid

    can you give me an example

  7. #7
    Lively Member Xium's Avatar
    Join Date
    Jan 2007
    Posts
    78

    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
    Hassan Khan

  8. #8

    Thread Starter
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: command button in data grid

    No I need it it this way!. Is it not possible ? using data repeater, user control anything ???

  9. #9
    Lively Member Xium's Avatar
    Join Date
    Jan 2007
    Posts
    78

    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..
    Hassan Khan

  10. #10
    Junior Member Jicks's Avatar
    Join Date
    Sep 2006
    Posts
    30

    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

  11. #11
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    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)?

  12. #12
    Member
    Join Date
    Apr 2007
    Posts
    41

    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??

  13. #13
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    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.

  14. #14

    Thread Starter
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    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
  •  



Click Here to Expand Forum to Full Width