ADAdministrator Syncfusion Team January 5, 2005 04:55 AM
In the designer, you can only increase/decrease the ColCount.
So, to insert a column, increase the colcount, and then select the last column by clicking its header (with the GlobalMode turned off). Then you can moouse down on the header of the selected column and drag it to where you want it. (You do have to have grid.AllowDragSelectedColumns = true to be able ot do this.). To delete a column, you can drag it to the end of the grid and then decrease teh ColCount.
RARajeshJanuary 6, 2005 10:39 PM
Thanks Its working fine.
But it works only for the new col. that is added
If I delete an existing col. by dragging it to the last position and then by reducing the col count by 1 as you said. But it won''t work.
i.e. It works(just it acts like one) for the current screen(last row will be disappeared/deleted).
Once I either close the form and reopened it
or executing it. The changes that made won''t get effect in the screen.
SO I want a sample program or a solution to resolve it.
And one more,
The same situation for inserting a col.
If new col. is added and draged before setting any property for that col. It works fine
But for the existing one, it won''t work
i.e. Dragging is possible but it won''t take effect in runtime or in the design time once I reopened the form.
for that I have to change the code part of it
whether it is the only way
or you have some other way to do it.
I Just want a help
ADAdministrator Syncfusion Team January 7, 2005 01:28 AM
Resetting the ColCount not taking effect appears to be a bug to me. I will forward it to the grid architect so we can get it fixed.
For the time being (until there is a release with this corrected), I think the simplest thing to do is to hide a column you want delete. You can do this in version 126.96.36.199 from the designer by adding an entry in the ColHiddenEntries collection (setting the proper ColIndex property in the object that is aded to the collection).
It also looks like dragging columns does not affect runtime either. One way you can work around this problem in 188.8.131.52 designer is to open up the RangeStyles collection. There, you can directly edit the Range property in each object. This has the effect of changing where that StyleInfo entry defined there will be applied. In this manner, you can move a defined StyleInfo entry from one column to another.
RARajeshJanuary 7, 2005 03:59 AM
As per ur Solution,
we can''t do the modification like
1. Dragging a existing Row and changing it to different place is not possible.
2. Same for delete
So I think it is burden for the developer if he forgot anything while designing Grid
Then he have redesign the Grid.
So can you offer some other facility to overcome this.
At Present, whether you work on this issue
or you doesn''t consider this is an Issue.
Please I want a Solution
Expecting Positive Reply,
Thanks for ur quick response
ADAdministrator Syncfusion Team January 7, 2005 04:16 AM
Are you using 3010?
If so, you can hiderows and edit the RangeStyles as suggested above for columns to move the styles applied to rows around as well.
For example, if you want to move the rowstyle that you have applied to row 3 to row 8, then you can open up the RangeStyles collection and selection the R3 entry, and change R3 to R8.