Solved

Infragistics DataGrid DateEditor

Posted on 2004-08-10
14
2,285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
14 Comments
 
LVL 2

Expert Comment

by:rattmman
ID: 11763522
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
ID: 11763836
;) - 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
ID: 11766640
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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 4

Author Comment

by:kolpdc
ID: 11770133
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
ID: 11773201
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
ID: 11773258
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
 
LVL 4

Author Comment

by:kolpdc
ID: 11773598
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
ID: 11773784
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
ID: 11773908
Thanks kolpdc,

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

Author Comment

by:kolpdc
ID: 11773990
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
ID: 11774023
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
ID: 11774190
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
ID: 11811570
Closed, 100 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Moderator
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Make the most of your online learning experience.
Simple Linear Regression
Starting up a Project

627 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