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

DataGrid displaying a default number of rows

P: n/a
I would like a DataGrid I am using to show a default number of rows (10) with
the heading, even if the dataset it is bound to returns less than that number
of rows (0-9). It is a databound grid that sometime returns less than 10
rows (paging is enabled with a row count of 10). I would like the grid to
always show 10 rows (blank rows if no data bound to them). Is there a way to
do this?
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Gerhard,

I don't think that this is reasonable (technical it will probably go)
possible with a windowsform datagrid.

Cor
Nov 21 '05 #2

P: n/a
Hi,

You would have to make sure there were 10 rows of data in the
dataset the datagrid is bound to.

Ken
-----------------------
"Gerhard" <Ge*****@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com...
I would like a DataGrid I am using to show a default number of rows (10)
with
the heading, even if the dataset it is bound to returns less than that
number
of rows (0-9). It is a databound grid that sometime returns less than 10
rows (paging is enabled with a row count of 10). I would like the grid to
always show 10 rows (blank rows if no data bound to them). Is there a way
to
do this?

Nov 21 '05 #3

P: n/a
Thank you. That is what I thought, but wanted to verify.

"Ken Tucker [MVP]" wrote:
Hi,

You would have to make sure there were 10 rows of data in the
dataset the datagrid is bound to.

Ken
-----------------------
"Gerhard" <Ge*****@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com...
I would like a DataGrid I am using to show a default number of rows (10)
with
the heading, even if the dataset it is bound to returns less than that
number
of rows (0-9). It is a databound grid that sometime returns less than 10
rows (paging is enabled with a row count of 10). I would like the grid to
always show 10 rows (blank rows if no data bound to them). Is there a way
to
do this?


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.