473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Custom DataGrid properties not getting set

I have a class that I've written that inherits DataGrid. Inside the
constructor I set several properties such as AllowPaging and
AllowSorting to true, which is what I want the default values to be.

In the consumer, which is a web form, I tested changing the properties
to the opposite of their default values. When I run the page, the
values in the consumer are ignored, and only the 'default' values are
recognized. I thought I was perhaps missing something, so I got a copy
of Dino Esposito's code for his SuperGrid. He too sets default values
in his constructor. Again, the same thing happened, so whatever I'm
missing he missed in his code too, apparently.

I have tried many iterations of this, including not using the
constructor and instead using the OnInit, putting the class in a
different project and compiling it separately, putting it in a Web
Control library, etc., etc. Nothin has worked; I still can't modify
the values. As a matter of fact, when I used the Web Custom Control
class structure, everytime I would change the value in the designer,
it would reset to its default value upon building.

What am I doing wrong?
Jul 21 '05 #1
0 1069

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jed | last post by:
I have a web service method that returns an array of custom objects marked serializeable with fully described public properties. When I bind the results to a DataGrid I can access the properties...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
0
by: Jason | last post by:
I have a class that I've written that inherits DataGrid. Inside the constructor I set several properties such as AllowPaging and AllowSorting to true, which is what I want the default values to be....
0
by: richard | last post by:
OK, Im finished pulling my hair out and now I need help. I have created a VB class file for my custom paging, in it I create a table with 2 rows, in the rows I have linkbuttons for first page,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.