Home All Groups Group Topic Archive Search About
Author
4 May 2005 3:10 PM
Josema
Hi,

I have a DataGrid that its filled from a DataTable.

this datagrid has autogeneratecolumns=true cause this datatable could have
different number of columns.

My problem its that:

I need that the first column be a link button column.

What its the best way to implement it?, i only imagine that i can derive
from DataGrid Class. Passing to a method of this grid class derived, the
datatable.
this way,  depending of the columns of the datatable, i can add to the grid,
the columns in execution time.

Its this a good solution?
There is any easier?


--
Thanks
Regards.
Josema
--
Thanks
Regards.
Josema

Author
4 May 2005 4:21 PM
Brock Allen
You can have manually declared columns and also have AutoGenerateColumns
enabled.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> Hi,
>
> I have a DataGrid that its filled from a DataTable.
>
> this datagrid has autogeneratecolumns=true cause this datatable could
> have different number of columns.
>
> My problem its that:
>
> I need that the first column be a link button column.
>
> What its the best way to implement it?, i only imagine that i can
> derive
> from DataGrid Class. Passing to a method of this grid class derived,
> the
> datatable.
> this way,  depending of the columns of the datatable, i can add to the
> grid,
> the columns in execution time.
> Its this a good solution?
> There is any easier?