Konu: C# navigation buton kodları
C# ta asagidaki buton kodu ile ilk kayda gidebildim ancak son,sonraki,onceki icin olanları yapamadim bilen varmidir ?
private void cmdFirst_Click(object sender, EventArgs e)
{
CeConn = new SqlCeConnection(@"data source = " + strDataPath);
CeCmd = new SqlCeCommand("select * from CariH", CeConn);
CeAdapter = new SqlCeDataAdapter(CeCmd);
DataSet DS = new DataSet();
DS.Clear();
CeConn.Open();
CeAdapter.Fill(DS);
CeConn.Close();
CeConn.Dispose();
GrdCarih.DataSource = DS.Tables[0];
DataRow dr = DS.Tables[0].Rows[0];
}
private void cmdLast_Click(object sender, EventArgs e)
{
//?
}
private void cmdNext_Click(object sender, EventArgs e)
{
//?
}
private void cmdPrior_Click(object sender, EventArgs e)
{
//?
}