Solved

Infragistics DataGrid DateEditor

Posted on 2004-08-10
14
2,266 Views
Last Modified: 2013-11-15
I am using Infragistics datagrids (Infragistics NetAdvantage 2004 Volume 2). All is working well - only one small problem:

If there is a column filled with datetimes, there is always a dropdown-button if you move over the cell which opens a dateeditor or something like this. does anyone of you know, how to disable or hide these buttons? is there generally a method to set the cells readonly?

thanks in advance.
0
Comment
Question by:kolpdc
  • 7
  • 5
14 Comments
 
LVL 2

Expert Comment

by:rattmman
Comment Utility
Hi kilpdc

What langauge are you writting in?

This is how I solved the problem in vb.net anyways,

Design Mode:

I created a Dataset which I binded to my Datagrid,
Under the datagrid property I use the dataset to be the datasource.

Then create a table style, after that is created I go in and create column style (Grid Column Style) and bind the columns to the corresponding column I wish to be displayed.

When you've add a Column you should have the ability to set the column to either Read Only or not.

But I suggest you NEVER USE A DATAGRID for data entry.  With all the time and fighting that our department had with it.

Wrath
0
 
LVL 4

Author Comment

by:kolpdc
Comment Utility
;) - you are absolutely right with that... i had to do much convincing-attempts with my boss not to be forced to use the grids directly as input. i only use the grids for presentation.
i tried to find the readonly-property, but i am a little bit lost in the object-hierachy. created it with the designer and looked into code how it is coded. but problem is, that there is an ultracombo-column created where readonly property is set to true. but i do it the other way around. i create my columns dynamically and then set the appearance later after grid_initialize. and there i am not able to find the property in the object-hierarchy.
0
 
LVL 2

Expert Comment

by:rattmman
Comment Utility
If you've gotten that far, you'll then need to setup your datagrid design now dynamically also, I forget the syntax for it, but here's a really really good site to go to for DATAGRID Help.

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q1096q

But here's a really quick rundown on what you'll probably need to do.

1. you'll have to create a datagrid table style object
2. with this table style object then association the column style
3. after the column style is in then you could find the readonly option.

Basically you're doing this all in code, but the above link would surely help you for sure.

Wrath
0
 
LVL 4

Author Comment

by:kolpdc
Comment Utility
oh - i think, perhaps we're talking about two different kind of grids. do you think if infragistics datagrids or do you talk about the regular microsoft wingrids? i think, the last ones?

i worked with ms-wingrid till we decided to use infragistics grids. the steps you mentioned above work on ms-grids. i used them this way while working with the old grids. but they do not fit for my grids.

by the way: i worked with both kinds of grids (ms and infragistics) and i will have to say, you will forget about ms-grids after you are familiar with infragistics-grids. (much) better, higher, faster...
0
 
LVL 2

Expert Comment

by:rattmman
Comment Utility
Ok,

ic, sorry I must've misread your post.  I was talking about ms grid.  The infragistics-grids must be a third party grid?

we do our own inshop grids here.

0
 
LVL 4

Author Comment

by:kolpdc
Comment Utility
take a look at www.infragistics.com
they show a nice example with complete sourcecode at http://www.infragistics.com/products/features.asp - take a look for tracker.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 4

Author Comment

by:kolpdc
Comment Utility
here is the solution to the problem:

ultraWinGrid1.DisplayLayout.Bands[0].Columns["date"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
or
ultraWinGrid1.DisplayLayout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
0
 
LVL 4

Author Comment

by:kolpdc
Comment Utility
i asked for a refund of this question.

although i answered myself, i want to thank you for your suggestions and asked to transfer 50 points to you, rattmman.
0
 
LVL 2

Expert Comment

by:rattmman
Comment Utility
Thanks kolpdc,

Hopefully I could be able to answer your question next time.
0
 
LVL 4

Author Comment

by:kolpdc
Comment Utility
if you have some minutes i recommend taking a look for this ultraWinGrid-stuff. like told we changed from ms to it and i am very glad having done this.
0
 
LVL 2

Expert Comment

by:rattmman
Comment Utility
I'm actually preparing a request for purchase for it right now.

I'm very impress what I see with it and hopefully the other programmers/developer would see the same as I do.

RC
0
 
LVL 4

Author Comment

by:kolpdc
Comment Utility
it provides great possibilities. it took me a little time to get used to working with it because some things are done in an other way than ms's (better in most cases). the docs where a little "small". if you should consider changing, get the manuals, get the tracker-example with ebook and source and use the support in cases you think you do not find the solution yourself. then it should be no problem.
have fun. DR
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
Comment Utility
Closed, 100 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Moderator
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now