Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
arnold #1
fully datagrid edit
Hi
I have a datagrid and I want to click on a button to edit all the row of the
datagrid.
How can I edit all the datagrid jus t with a button click?
Thanks
arnold Guest
-
fully editable datagrid causing crash
i need to display up to possibly a few hundred rows from a database table in a datagrid that is fully editable. there need to be 5 editable... -
fully editable Datagrid..not bound to database..
Hello ppl I read an article in this forum regarding constructing a datagrid not bound to a database. My question is on those line..though not... -
Fully editable datagrid
Hi, I need to have a fully editable datagrid control for my webforms. I have managed to get the control so that I have one edit button at the... -
Fully multiple, editable dynamic datagrid.
Hi, I've written previously, to no avail. Can someone please help, I am looking for a working code example, that allows one to create a datagrid... -
Joel #2
Re: fully datagrid edit
There is two ways
1. Right Button in Datagrid, Property Builder, Colummns, Button Column and
select the Edit, Update, Button Column
2. The other way is to create a template column, and in the template put a
button and in its property commandName write Edit
Both, fire the EditCommand Event in DataGrid
write this code
Datagrid1.EditItemIndex = e.Item.ItemIndex
Datagrid1.DataSource = ds
Datagrid1.DataBind
Joel
"arnold" <arnold@freesurf.fr> wrote in message
news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...the> Hi
>
> I have a datagrid and I want to click on a button to edit all the row of> datagrid.
> How can I edit all the datagrid jus t with a button click?
>
> Thanks
>
>
Joel Guest
-
arnold #3
Re: fully datagrid edit
Thanks for the answer but my problem is that I want to edit all the row at
the same time by clicking on a button.
Thanks
Arnaud
"Joel" <jjfrancia@hotmail.com> wrote in message
news:eT0Q7fLhDHA.884@TK2MSFTNGP10.phx.gbl...> There is two ways
> 1. Right Button in Datagrid, Property Builder, Colummns, Button Column and
> select the Edit, Update, Button Column
>
> 2. The other way is to create a template column, and in the template put a
> button and in its property commandName write Edit
>
> Both, fire the EditCommand Event in DataGrid
>
> write this code
>
> Datagrid1.EditItemIndex = e.Item.ItemIndex
> Datagrid1.DataSource = ds
> Datagrid1.DataBind
>
>
> Joel
>
> "arnold" <arnold@freesurf.fr> wrote in message
> news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...> the> > Hi
> >
> > I have a datagrid and I want to click on a button to edit all the row of>> > datagrid.
> > How can I edit all the datagrid jus t with a button click?
> >
> > Thanks
> >
> >
>
arnold Guest
-
Jos #4
Re: fully datagrid edit
"arnold" <arnold@freesurf.fr> wrote in message
news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...the> Hi
>
> I have a datagrid and I want to click on a button to edit all the row ofArnold, have a look at this article:> datagrid.
> How can I edit all the datagrid jus t with a button click?
[url]http://www.dotnetjohn.com/articles/articleid83.aspx[/url]
--
Jos Branders
Jos Guest
-
arnold #5
Re: fully datagrid edit
Thank you jos
But my problem is to edit all the row just by the click of one button.
I want to use a normal datagrid and click on a button in order for the
datagrid to become editable. Like that I can change the info for all the
row in one time.
And then I click another button to save everything.
Thanks a lot
Arnold
"Jos" <josnospambranders@fastmail.fm> wrote in message
news:eLnSdtRhDHA.4088@tk2msftngp13.phx.gbl...> "arnold" <arnold@freesurf.fr> wrote in message
> news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...> the> > Hi
> >
> > I have a datagrid and I want to click on a button to edit all the row of>> > datagrid.
> > How can I edit all the datagrid jus t with a button click?
> Arnold, have a look at this article:
>
> [url]http://www.dotnetjohn.com/articles/articleid83.aspx[/url]
>
> --
>
> Jos Branders
>
>
arnold Guest
-
Saravana #6
Re: fully datagrid edit
check out this article,
[url]http://www.microsoft.com/india/msdn/articles/SolutionstoTopFourQuestions.asp[/url]
x
--
Saravana
Microsoft India Community Star,MC**
[url]www.extremeexperts.com[/url]
"arnold" <arnold@freesurf.fr> wrote in message
news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...the> Hi
>
> I have a datagrid and I want to click on a button to edit all the row of> datagrid.
> How can I edit all the datagrid jus t with a button click?
>
> Thanks
>
>
Saravana Guest
-
Jos #7
Re: fully datagrid edit
arnold wrote:
Then just add these lines to your DataGrid:> Thank you jos
>
> But my problem is to edit all the row just by the click of one button.
> I want to use a normal datagrid and click on a button in order for
> the datagrid to become editable. Like that I can change the info for
> all the row in one time.
> And then I click another button to save everything.
<Columns>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update"
CancelText="Cancel" EditText="Edit">
</asp:EditCommandColumn>
</Columns>
Also handle the appropriate events. This is the EditCommand event:
Sub DataGrid1_OnEditCommand(Sender As Object, e As DataGridCommandEventArgs)
DataGrid1.EditItemIndex = e.Item.ItemIndex
BindGrid()
End Sub
--
Jos Branders
Jos Guest



Reply With Quote

