By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 943 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.


Message posted via
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.