Hello everyone,
I have searched for this and I'm sure the answer is out there but I haven't been able to find it. I want to be able to edit the first cell in every column within a band.
I tried a few things like cell activation and also setting the datacolumn to ReadOnly = false;
Neither of these things work. Any help is much appreciated. Thank you!
All cells in the grid are editable by default. So if you are unable to edit any cell, it's either because you have disabled editing in the grid, or because your data source does not allow editing.
Here's a link to a KB article that describes how to disable things in the grid. That should point you in the right direction in terms of what to look for in your code.
HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
Hi Mike,
Thank you for your response. I thought for sure this example code was going to fix my problem. I did not create the grid through the designer and Im finding out now that Im running into a few places where the normal defaults are not being set. I did add this code below in the designer.cs file but it still didnt allow the cell in column 1 of band one to edit the text.
Im not sure if there is another property that is preventing this that didnt get set because I hand coded the whole thing? Any help is much appreciated.
//Code added to the grid (didnt enable the editing of the cell text)
this.ultraGrid1.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.True; this.ultraGrid1.DisplayLayout.Bands[0].Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.True;
Hi,
I took a look at these files, but like I said, they are not very useful. I'm not even sure which column is the "first" column that you are saying is not editable.
I'm assuming it's ultraGridColumn1 in the designer code, and I don't see anything in this code that would make this column read-only.
Try binding the same UltraDataSource to a DataGridView control and see if the field can be edited there. At least that will narrow the problem down to the grid or the UltraDataSource.
So I was able to come back to this code today and try out some things. I ended up making a whole new UltraGrid in the designer. When I had just the minimal things in the grid I was able to go and edit the cells. I proceeded to copy over as much code as possible and when I ran im still getting a run time error about the band not having all the columns I thought I added to it through the designer. These were the kind of problems I had at first that made me end up hand coding the whole grid.
My second thought was that Im using the Creation Filter. Do you think this could possibly be any kind of a problem by it not allowing me to edit a cell. As far as I know this code cycles through all the elements in the grid and does things as you need them to. I compared lines in the designer code with my hand code and I couldnt see anything different that we didnt try to enable the cell editing.
I guess my last question is about alternative help. Is there any kind of video tutorials or one on one sessions that can help me work with the grid designer?
Hello Rich,
RichSee said:I guess my last question is about alternative help. Is there any kind of video tutorials or one on one sessions that can help me work with the grid designer?
I create a case for you with reference number CAS-75907-ZWZYD7. I`ll send you through the case video file which showing how to use the UltraGird`s designer. Meanwhile I include in this forum thread few links from our online documentation about the designer.
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Using_the_WinGrid_Designer.html
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Defining_Layouts.html
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Using_the_Row_Layouts_Designer.html
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Advanced_Row_Layouts_Part_1_of_2.html
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Advanced_Row_Layouts_Part_2_of_2.html
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Work_with_Row_Layouts.html
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Grouping_Columns_in_Row_Layout_Mode_using_the_Designer.html
Please if you have any questions, do not hesitate to write me here or through the case.
Regards
I am unable to edit a cell after locking the row.
this is to lock entire row
Me.ultraGrid1.Rows(10).Activation = Activation.NoEdit
and i need to unlock only one cell
Me.ultraGrid1. Rows(10).Cells("Select”).Activation = Activation.NoEdit
but unable to edit the select column which style is check box.
please help to lock entrie row but allow check box column to edit.
There's a similar question answered here:
Activation property for rows, columns and cells - NetAdvantage for Windows Forms - WinGrid