![]() |
How to make GridView entering edit mode by code?
Hi,
I'm learning how to user GridView, I add some template fields to the GridView, and put a "Edit" LinkButton in Column[0], I have also setup the EditItemTempate for each column. Now, when the user click the Edit button, how can I make GridView entering edit mode? What method should I call? Thanks! |
Re: How to make GridView entering edit mode by code?
you would need to set the EditIndex of the gridview object to to Row# to be
edited and re-bind the grid to the datasource. is is why its easier to let the managed code do it for you. Angelo Cook "Michael" <huanlin.tsai@gmail.com> wrote in message news:ue3AdhG5FHA.3400@tk2msftngp13.phx.gbl... > Hi, > I'm learning how to user GridView, > I add some template fields to the GridView, and put a > "Edit" LinkButton in Column[0], I have also setup the > EditItemTempate for each column. > > Now, when the user click the Edit button, how can I > make GridView entering edit mode? What method should > I call? > > Thanks! > > |
Re: How to make GridView entering edit mode by code?
What do you mean when you say "let the managed code do it" ?
I'm writing .NET code, and it is of course managed code, isn't it? Would you tell me more detail? Thanks! > you would need to set the EditIndex of the gridview object to to Row# to > be edited and re-bind the grid to the datasource. is is why its easier to > let the managed code do it for you. > > Angelo Cook > > > "Michael" <huanlin.tsai@gmail.com> wrote in message > news:ue3AdhG5FHA.3400@tk2msftngp13.phx.gbl... >> Hi, >> I'm learning how to user GridView, >> I add some template fields to the GridView, and put a >> "Edit" LinkButton in Column[0], I have also setup the >> EditItemTempate for each column. >> >> Now, when the user click the Edit button, how can I >> make GridView entering edit mode? What method should >> I call? >> >> Thanks! >> >> > > |
| All times are GMT. The time now is 07:30 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.