473,545 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UML Object Mode For A User/Custom Control Containing An Extended WinForms DataGrid - Best Practices For Paint, DataGridTableSt yle GridColumnStyle s, etc.

Does anyone have a best practices object model for the properties and methods that would typically be involved with the GDI painting, rendering, etc. aspect of this control. Classes surely to be involved will be DataGridTableSt yle, DataGridColumnS tyle, GridColumnStyle s Paint, Brush, Fonts, DataGridTextBox Column, DataGridBoolCol umn, PointToClient, TableStyles, etc.

Basically we want to change row colors, fonts, borders, etc. based on the information in the row of the DataSet the grid will be bound too. I'd like to have the DataSet as a public property to start. The control will be used twice on the came form, one contain equity buy's and the other equity' sells. ByOrSell may be a public property.

Unavoidably I see we are going to have to extend a windows forms Datagrid, whether it's the .net, Infragistics, ExtendedDataGri d, etc., to conform to our specific application requirements.



Nov 21 '05 #1
1 1373
I meant Model not Mode
"Richard" <a@b.com> wrote in message news:E3******** *************@t wister.nyc.rr.c om...
Does anyone have a best practices object model for the properties and methods that would typically be involved with the GDI painting, rendering, etc. aspect of this control. Classes surely to be involved will be DataGridTableSt yle, DataGridColumnS tyle, GridColumnStyle s Paint, Brush, Fonts, DataGridTextBox Column, DataGridBoolCol umn, PointToClient, TableStyles, etc.

Basically we want to change row colors, fonts, borders, etc. based on the information in the row of the DataSet the grid will be bound too. I'd like to have the DataSet as a public property to start. The control will be used twice on the came form, one contain equity buy's and the other equity' sells. ByOrSell may be a public property.

Unavoidably I see we are going to have to extend a windows forms Datagrid, whether it's the .net, Infragistics, ExtendedDataGri d, etc., to conform to our specific application requirements.



Nov 21 '05 #2

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

Similar topics

5
5550
by: Jeff Cook | last post by:
Hi I have a DataGrid that I am using to display a .xml file (that has a schema in a .xsd), like this:- ds.ReadXmlSchema(sDataPath + "Data.xsd"); ds.ReadXml(sDataPath + "Data.xml", XmlReadMode.InferSchema); grdXXXX.DataSource = ds; FormatGridColumns(grdXXXX, ds.Tables); // my routine below.
3
2418
by: Peter | last post by:
I have a datagrid on WinForm and I am trying to format the Grid. I am using the following code, the code runs fine, but nothing happens after it runs, the datagrid does not change (with data in the grid or with out any data) DataGridTableStyle gridStyle = new DataGridTableStyle(); gridStyle.MappingName = "Test";...
4
5959
by: michael walser | last post by:
I get this message in "Spaltenbreite definieren" => Definition for Columns Width An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication1.exe Additional information: Object reference not set to an instance of an object. Please help me.
0
1682
by: berg | last post by:
All, I am binding an ArrayList full of custom objects to an DataGrid. The property in the custom class are all public. I define a DataGridTableStyle and set the MappingName to "ArrayList". I then add a DataGridTextBoxColumn for each of the properties in my custom class which define a MappingName --> property name in class as well as...
1
1684
by: Russ Perry Jr | last post by:
I'm working on my first "real" C# project, and one of the first things I'm doing is putting some data up in a grid. I'm using a DataSet returned form running a stored proc as my grid.DataSource, and everything comes up just fine. Then I think, let's be clever and resize the grid columns to their max widths, and a little research finds...
0
1148
by: Richard | last post by:
Does anyone have a best practices object model for the properties and methods that would typically be involved with the GDI painting, rendering, etc. aspect of this control. Classes surely to be involved will be DataGridTableStyle, DataGridColumnStyle, GridColumnStyles Paint, Brush, Fonts, DataGridTextBoxColumn, DataGridBoolColumn,...
24
10736
by: Mike L | last post by:
This is for a Win form, in C# 2005. I want to load a datagrid, make some columns width 0, and then clean out the record I added. I get the error message, ""Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"" I have tried, -1,0,1,2 for the index, and I get the same error message...
17
7415
by: Mike Fellows | last post by:
im trying (unsucessfully) to add a checkbox column to my datagrid i basically have a datagrid that im populating from a dataset Me.DataGrid1.DataSource = ds.Tables(0) the datagrid then has 5 columns in it but i need to add a sixth column which will be my checkbox column - any help or pointers with this would be great
1
2552
by: DraguVaso | last post by:
Hi, I found on the net that it is possible to use the BeginUpdate end EndUpdate-methods with a DataGrid: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridcolumnstyleclassbeginupdatetopic.asp Unfortunately it doesn't work with me: In some way I should make a derived class from the...
0
7420
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7680
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7934
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6003
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4966
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3459
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
731
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.