Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Wrapping a DataGrid

Reply
Thread Tools

Wrapping a DataGrid

 
 
Sergio Florez M.
Guest
Posts: n/a
 
      12-07-2004
I'm trying to wrap a datagrid inside another control, so Basically I expose
a few of its properties like this:

public int PageSize
{
get
{
EnsureChildControls();
return gridDatos.PageSize;
}
set
{
EnsureChildControls();
gridDatos.PageSize = value;
}
}

My problem is that this doesn't work with the Columns collection so I tried
it like this:

private DataGridColumnCollection _columns;
public DataGridColumnCollection Columns
{
set
{
_columns = value;
}
get
{
return _columns;
}
}

But this didn't work either. I get this error:

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS1501: No overload for method
'DataGridColumnCollection' takes '0' arguments

Help please!!

--
Sergio Florez M.
Medellín, Colombia.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS work around on text wrapping in a datagrid does not work TB ASP .Net 2 02-22-2006 10:34 PM
To stop text wrapping in an datagrid asp.net 2003 Dan ASP .Net 0 02-25-2005 06:34 AM
datagrid columns wrapping =?Utf-8?B?cm9kY2hhcg==?= ASP .Net 4 10-22-2004 05:35 PM
datagrid - Control Wrapping G. Dean Blake ASP .Net 2 05-07-2004 01:03 AM
How to turn wrapping off for datagrid columns Scott ASP .Net 1 01-08-2004 12:07 AM



Advertisments