Hi,
In my grid I have paging enabled but I want to hide the page numbers to be shown from Create/update screen.
In create/ Update screen I am already hiding the list of records as follows:
In my grid I have paging enabled but I want to hide the page numbers to be shown from Create/update screen.
In create/ Update screen I am already hiding the list of records as follows:
protected
void
rgTest_PreRender(
object
sender, System.EventArgs e)
{
//Hide All Rows on insert and Display the insert Form Only
if
(rgTest.MasterTableView.IsItemInserted)
{
foreach
(GridItem item
in
rgTest.Items)
{
item.Visible =
false
;
}
}
//Hide All Rows on edit and Display the edit Form Only
else
if
(rgTest.EditItems.Count > 0)
{
foreach
(GridDataItem item inrgTest.MasterTableView.Items)
{
if
(item != rgTest.EditItems[0])
{
item.Visible =
false
;
}
}
}
}