I am using an UltrawebGrid that is bound to a dataset. I hide 4 columns when viewing. I am having issues with the size of the rowselector size (see pic). I have tried to set the size of the rowselectorstyle.width, as well as each of the columns of the grid. I have also set the TableLayout to auto and I am still getting the same results. Anything I am overlooking?
Hi jcom39201,
Thank you for posting in the community.
I suggest that you try setting the width of the rows selectors explicitly through the RowSelectorStyleDefault in your grid's DisplayLayout.
Note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.htmlAdditional samples demonstrating the features of these grids can be found at:http://samples.infragistics.com/aspnet/
Please let me know if this helps.
Sorry, I did get the hide a column working, was my mistake but still not getting the cycle through the rows to work. Also trying to format the columns for alignment = center or alignment = right, also cell padding. How are those formatted now? Thanks
Thank you for your reples.
Regarding your first query, the code you have provided seems ok. I have tested the scenario but am yet unable to replicate the described issue using version 11.2. However, there is a known issue causing similar effects which should be resolved in the latest service releases for 10.2 and 10.3 and later versions. I would need to know your exact product version in order to be able to provide more insight.
As per for your styling question, can you provide me with some more information - is the data source of your grid changed upon changing the selection in WebDataTree ? It may help to add !important clause in your classes to see if that has any effect.
Please feel free to contact me if you have any questions.
Petar,
Sorry to be so bothersome but I am not having much luck with this new control as of yet. Another issue I am having is editing and saving the grid data. Because I have a complex sql select statement and I also change the bound datasource of the grid based on the tree selection, my datasource binding is done in vb programmatically. In the webdatagrid, I have the autocrud set to false and editingcore enabled and batchupdating set to true. I do this because I want the user to be able to edit any data in the grid without a postback and then to select a button that cycles through the rows and updates the data programmatically. Everything works ok until I go to save the updates. I cycle through the rows using
WebDataGrid1.Rows(iCount).Items(0).Value to get the value in a given cell. The problem is that this value is not the modified value, it is still the original value. Is there a way to get the modified values programmatically?
Thank You!
I am attaching a sample illustrating the change in datasource and applying conditional styling scenario (on the test page, upon selecting a different node in a tree, the datasource of WebDataGrid is toggled).
Regarding manually updating your datasource, I suggest that you take a look at the following video illustrating WebDataGrid Manual CRUD:
http://blogs.infragistics.com/aspnet/media/p/218617.aspx
Note that you can update your datasource in the rowAdding/Updating/Deleting events, which will be fired for each modified row. More information on enabling and using the WDG BatchUpdating feature can be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebDataGrid_Batch_Updating.html
Please let me know if this is helpful.
Please feel free to contact me if you have any further questions regarding this scenario.
Thank You Petar! Much appreciated!
Would you know what I can do with this post?
http://community.infragistics.com/forums/p/66644/336823.aspx#336823