Hi Naveed,
Here is my answers for your query.
1) You can apply the cell styles based on Row index in QueryCellStyleInfo event as follows.
if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
if (e.Style.TableCellIdentity.RowIndex == 5)
{
e.Style.TextColor = Color.Red;
}
}
Alternately you can also apply the Styles for the Row based on some condition. Please have a look at our "ConditionalFormatting" sample which ships with our Essential Studio install. You can find this sample under {Installed Location}\4.4.x.x\Web\grid.grouping.web\Samples\2.0\Formatting\ConditionalFormatting\cs"
2) "BarButtonItemClicked" event will be triggered when the ButtonBarItem is pressed. you can handle the event for MoveNext page button as shown below.
In the BarButtonItemClicked event
if (e.ButtonBarItem.ButtonBarItemType = ButtonBarItemType.MoveNext)
{
//Your code
}
3) Please have a look at the below thread where similar viewstate issue is discussed.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=51399Let us know if you need any other assistance.
Thanks for using Syncfusion products.
Regards,
Gokulkumar B