Home All Groups Group Topic Archive Search About

generate DataGrid at Runtime..... PROBLEM !!!!

Author
24 Feb 2005 10:50 AM
n.shah12
Dera All

   I am generating dataGrid at runtime
   (dim dg as new datagrid)
  and so also bound column , EditCommandColumn and other...

now i want to enable in-line edit.

how to do it as OnEditCommand datagrid created at runtime doesnot
offer OnEditCommand facility.

how to write Event handler ?

regards.

Author
24 Feb 2005 5:08 PM
Elton Wang
Create event handler

AddHandler dg.EditCommand, AddressOf MethodName

HTH

Elton Wang
elton_w***@hotmail.com

Show quoteHide quote
>-----Original Message-----
>Dera All
>
>   I am generating dataGrid at runtime
>   (dim dg as new datagrid)
>  and so also bound column , EditCommandColumn and
other...
>
> now i want to enable in-line edit.
>
> how to do it as OnEditCommand datagrid created at
runtime doesnot
>offer OnEditCommand facility.
>
>how to write Event handler ?
>
>regards.
>
>.
>
Author
27 Feb 2005 4:20 PM
Alex Homer
Here's an example:
http://www.daveandal.net/books/6744/webforms/dynamicgrid.aspx

<n.sha***@gmail.com> wrote in message
Show quoteHide quote
news:1109242244.465834.233230@f14g2000cwb.googlegroups.com...
> Dera All
>
>    I am generating dataGrid at runtime
>    (dim dg as new datagrid)
>   and so also bound column , EditCommandColumn and other...
>
>  now i want to enable in-line edit.
>
>  how to do it as OnEditCommand datagrid created at runtime doesnot
> offer OnEditCommand facility.
>
> how to write Event handler ?
>
> regards.
>