Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   How to make GridView entering edit mode by code? (http://www.velocityreviews.com/forums/t113067-how-to-make-gridview-entering-edit-mode-by-code.html)

Michael 11-08-2005 01:28 PM

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!



Angelo Cook 11-09-2005 01:36 PM

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




Michael 11-09-2005 04:28 PM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57