Hi Jagan,
Actually, I couldn't find any solution to restrict the rows to 5
i can only do like statements below.. but i can restrict for 5 but cant accomplish paging concept
if(selectedFieldsTable.Rows.Count < 5)
{
for (int i = selectedRows.Count - 1; i >= 0; i--)
{
string fieldLabel = null;
string fieldType = null;
string tabOrder = null;
tabOrder = (string)selectedRows[i].Cells[0].Value;
fieldLabel = (string)selectedRows[i].Cells[1].Value;
fieldType = (string)selectedRows[i].Cells[2].Value;
DataRow newRow = selectedFieldsTable.NewRow();
newRow["Field Name"] = fieldLabel;
newRow["Field Type"] = fieldType;
if (!selectedFieldsTable.Rows.Contains(new System.Object[] { fieldType, fieldLabel }))
{
selectedFieldsTable.Rows.Add(newRow);
}
else
{
MessageBox.Show("Form Field :" + fieldLabel + " already selected", "PDF Perform Info");
}
}
}