dynamic add column at certain col

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top