Filtering on DataGrid ???

G

Guest

Dear all,

I have an SQL statement which return 10 columns in a dataset
That dataset is bind to a dagrid.

What is the way to show only 3 columns in the datagrid, even if the dataset
has more ?

I have try, column.visible but no effect
I have try to bind column directly from HTM source but no effect

Any idea ?

regards
serge
 
D

David Wier

Are you using (BoundColumns or TemplateColumns), or do you not have a column
Selection at all?
Like Eliyahu pointed out, if the later is true, or if you have
AutoGenerateColumns set to 'true' then, all of the requested columns will
show


David Wier
http://aspnet101.com
http://aspexpress.com
MCP-VB/SQL2000/MVP (ASP.Net)
 

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,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top