data Grid column Style if DataSource is an ArrayList, not a datatable?

S

Siva M

Assuming you are talking about ASP.NET DataGrid:
For the second part of your question: set the grid's AutoGenerateColumns
property to false and explictly list the columns using <Columns> element.

<asp:DataGrid runat="server" ID="dg">
<Columns>

</Columns>
</asp:DataGrid>


Hi,

Is there a way to specify data Grid column Style if its DataSource is an
IList(ArrayList), not a datatable? Can I selectively only show few columns,
not all of its properties?

Thanks!
 
R

Ryan Liu

Hi,

Is there a way to specify data Grid column Style if its DataSource is an
IList(ArrayList), not a datatable? Can I selectively only show few columns,
not all of its properties?

Thanks!
 

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

Top