swatirs
June 25th, 2001, 02:46 AM
Hi
I am very new to ASP.NET.
What I want to do is this. Depending on certain conditions my Select query for datagrid changes and the columns returned are different from each query. I dont want to use autogenerated fields as i want to do some formatting.
I am trying to add columns to the columns collection of datagrid programatically. But it doesnt allow me to make a new column( says "Cannot create an instance of the abstract class or interface 'System.Web.UI.WebControls.Column'")
What should i do? Pls help
thanx in advance
I am very new to ASP.NET.
What I want to do is this. Depending on certain conditions my Select query for datagrid changes and the columns returned are different from each query. I dont want to use autogenerated fields as i want to do some formatting.
I am trying to add columns to the columns collection of datagrid programatically. But it doesnt allow me to make a new column( says "Cannot create an instance of the abstract class or interface 'System.Web.UI.WebControls.Column'")
What should i do? Pls help
thanx in advance