Can you create & see columns in a datagrid before a dataset is bound to it?

  • Thread starter Thread starter Mac via DotNetMonster.com
  • Start date Start date
M

Mac via DotNetMonster.com

Hi all,

I have a datagrid on a form which is not populated until the user enters
selection criteria and clicks a button. Rather than have a blank datagrid
when the form is displayed, I would like to have the columns headings that
are to be displayed actually there. Is this possible?

I know how to create a DataGridStyle programatically and add columns, so I
added this chunk of code to the "page_load" event and nothing happened. Am
I on the right track?

Any help appreciated.


regards,

Mac
 
Mac,

I did not try this, however you can try it with setting the rowfilter from
your defaultview (or dataview) in an impossible format in advance. Than
there should be now rows showed only a header. (Don't forget than to set as
well the allow properties to false)

Just an idea

Cor
 

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

Back
Top