J
Johnny Hu
Hi,
i have written a datagridcolumn class and i can add it into datagrid when
Page_Load
but the column is always added to the first column.
(i want to add it after certain column)
datagrid1.datasource = getsource(); //return a datatable
addcolumn(); //call my function to add a column dynamicly
datagrid.databinding();
as i traced the code, the datagrid.columns.count is always 0
in every event of datagrid.
so, when is the grid been rednered ?
i have written a datagridcolumn class and i can add it into datagrid when
Page_Load
but the column is always added to the first column.
(i want to add it after certain column)
datagrid1.datasource = getsource(); //return a datatable
addcolumn(); //call my function to add a column dynamicly
datagrid.databinding();
as i traced the code, the datagrid.columns.count is always 0
in every event of datagrid.
so, when is the grid been rednered ?