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
Petar,
I have switched to the new WebDatagrid and am struggling a bit with it so far. It is completely different than the Ultrawebgrid which I was understanding pretty good. anyway, I am loading the webdatagrid programmatically with sql data that I bind as the datasource. The data shows correctly in the grid but now I amtrying to format the grid and also cycle through the rows.
After binding the data I am trying to hide some columns using
WebDataGrid1.Columns(2).Hidden =
True
And it errs out stating "Object reference not set to an instance ..." I don't get why that would be happening. It happens on anything I try to change programmatically in vb. I also try to cycle through the rows programmatically and I use WebDataGrid1.Rows.Count to get the number of rows. I have 3 rows shown in the grid but the number this line of code returns is -1. So for some reason its like the grid is not set or something. Also is CSS the only way you can format look and feel of the grid?
Thanks!