Code:
protected void Button1_Click(object sender, EventArgs e) { DataTable t1 = new DataTable(); t1 = GetTable(); for (int i = 3; i < t1.Rows.Count; i++) t1.Rows.RemoveAt(i);
protected void Button1_Click(object sender, EventArgs e) { DataTable t1 = new DataTable(); t1 = GetTable(); for (int i = 3; i < t1.Rows.Count; i++) t1.Rows.RemoveAt(i);
<EmptyDataRowStyle BackColor="Transparent" HorizontalAlign="Center" /> <PagerStyle BackColor="Yellow" /> <PagerSettings Mode="NumericFirstLast" />
protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e) { DataSet myDataSet
System.NullReferenceException was unhandled by user code
DataSet myDataSet = new DataSet(); try { myConnection.Open(); // create the data GenerateDataSet(myDataSet, myConnection); } finally { myConnection.Close();
Leave a comment: