DataGrid question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
Josema said:
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.
Depending on what your application is doing, if you know the table name,
you could create a datagridtablestyle and add your column to it first.
When you then load the datagrid from the real table, the real columns
will just be added!

/steveA
 
Back
Top