|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Programattically setting gridview to edit modeI have a button on my form which is enabled when the user selects a record
in the datagrid (I do not want an edit button for each record in the grid). How can I force the datagrid into edit mode when the user clicks on this button? Nirmal "Nirmal Singh" <nirmal.si***@notthisbittowerhamlets.gov.uk> wrote in message Unfortunately, I see no one has answered this. I would have like to do news:ut9BLIVHIHA.3916@TK2MSFTNGP02.phx.gbl... >I have a button on my form which is enabled when the user selects a record >in the datagrid (I do not want an edit button for each record in the grid). >How can I force the datagrid into edit mode when the user clicks on this >button? > > Nirmal something very similar: Create a "new" row in the gridview, then select (position) on that new row and go into edit mode. This would give me a simple way to create a new row in the database. -- ====================================================================== Joseph "Beemer Biker" Stateson http://TipsForTheComputingImpaired.com http://ResearchRiders.org Ask about my 99'R1100RT ====================================================================== To force the grid control into Edit mode, use the ChangeMode function like
this:- GridView.ChangeMode(GridViewMode.Edit) Regards, Paul Show quoteHide quote "Nirmal Singh" <nirmal.si***@notthisbittowerhamlets.gov.uk> wrote in message news:ut9BLIVHIHA.3916@TK2MSFTNGP02.phx.gbl... >I have a button on my form which is enabled when the user selects a record >in the datagrid (I do not want an edit button for each record in the grid). >How can I force the datagrid into edit mode when the user clicks on this >button? > > Nirmal > "Paul Bicknell" <bicknell.p***@virgin.net> wrote in message unfortunately, that ChangeMode method only works in DetailsView, not news:m5NXi.19133$6v.12854@newsfe2-gui.ntli.net... > To force the grid control into Edit mode, use the ChangeMode function like > this:- > > GridView.ChangeMode(GridViewMode.Edit) GridView, but it is a nice thing to know anyway. Show quoteHide quote > Regards, > > Paul > > "Nirmal Singh" <nirmal.si***@notthisbittowerhamlets.gov.uk> wrote in > message news:ut9BLIVHIHA.3916@TK2MSFTNGP02.phx.gbl... >>I have a button on my form which is enabled when the user selects a record >>in the datagrid (I do not want an edit button for each record in the >>grid). How can I force the datagrid into edit mode when the user clicks on >>this button? >> >> Nirmal >> > >
Why Does This Not Work?
Datagrid default date format GridView - Hyperlink Editing/Deleting/Inserting Records using ASPxGridView Hiding grid columns based on some value in row DataView Borders edit template to edit record with null field Controlstyle How do I remove Datagrid Spacing? Datalist SetRenderMethodDelegate |
|||||||||||||||||||||||