I enabled sorting on a WebDataGrid that displays data (I set the DataSource in the code behind in the Page Load event) and the data would disappear. I saw in another post that I should not set the DataSource only for Not IsPostback() so I moved it outside the if and now I have data after requesting a sort but it seems to be one click behind. The first click on a column causes no change. The second click suddenly reveals the sorting I asked for in the previous click. I also have a problem with this because I want to handle saving myself as there are some business rules that apply to a column of data across all rows, not just each single row. If I always reload the original data, won't I lose any of the user's changes?
I also wanted gridlines to appear in the grid and after not finding a property for that I changed ig_dataGrid.css, I saw lines appear in the page design of Visual Studio 2008 and thought all was well. However, when I look at the page in the browser, there are no gridlines. I then tried to change the background-color from white to another color and that didn't work either. I'm making my changes in these items: tbody.igg_ItemIE6 tr td; tbody.igg_Item>tr>td; tbody tr.igg_AltIE6 td and tbody>tr.igg_Alt>td
I'm using version 9.2 in case that makes a difference. What am I missing here?
Hello Leif,
Thank you for submitting your inquiry on the Infragistics ASP.NET forums. I have attached a sample created using NetAdvantage 9.2.20092.1003 which I tested in IE versions 6, 7 and 8. In the sample, the Background-Color for the WebDataGrid is changed in the ig_dataGrid.css from White to a couple of different colors, as well as the Header and RowSelectors, in the four items you referenced.
Modifications were also made to now display gridlines. The border style property needs to be set to display gridlines. In the attached sample, the border is set to the following setting: border:solid 1px #D8D8D8;
The sample also shows the column sorting working properly. The grid is bound to a DataTable, where a check is made for a postback and the DataTable is saved into Session. The WebDataGrid CellEditing is enabled in the sample so values may be changed and persisted during a postback.
Please test the sample on your machine and let me know if you have any questions. FYI - I removed most of the images not used in this sample and modified the ig_res folder to contain only the ig_dataGrid.css.
Thank you.
Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support
Mike,
Could you either post or send the sample again? I'm also trying to get the gridlines on a WebDataGrid.
Thanks.
Coleman Baker - ITT AES
Hello Coleman,I have created a support case for your request where I have attached the sample. To access your support case, log onto your account at Infragistics.Com.
Please use the following link to log onto your account at Infragistics.Com:
<https://ko.infragistics.com/Membership/MySupport.aspx>
Once you are logged onto your account, go to My Support Activity to download the sample.Please let me know if you have any questions.Thank you.Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support