Hi all,
I have bind datagrid dynamically through coding .. it display 2 columns at runtime.
Now i want to make the First column align Right while second to Left.
So i tried to solve it usingBut the problem i face is that when i useVB Code:
DataGrid.Columns(0).Style.HorizontalAlignment = .....Right
VB Code:
Datagrid1.Datasource = ds.Tables(0) 'Response.Write(Datagrid.Columns.Count) Datagrid1.Databinding() Response.Write(Datagrid.Columns.Count)
it always gives 0
I know this problem is due to dynamic column binding. But don't know how to solve it..
Help me URGENT..




Reply With Quote