mohammad87
سه شنبه 12 شهریور 1387, 17:36 عصر
چطور مي تونم توي gridview تاريخ ميلادي كه توي بانك هست رو به صورت شمسي نمايش بدم؟؟؟؟؟
من با دستور زير دارم اطلاعاتمو توي gridview نشان مي دم فقط نمي تونم به شمسي نشون بدم ؟؟؟
private void bindgride_suggestion()
{
SqlConnection consuggestion = new SqlConnection("Data Source=MOHI-MOSI\\SQLEXPRESS;Initial Catalog=Hedayat-Web;Integrated Security=True");
SqlCommand cmdsuggestion = new SqlCommand("SelectSuggestion", consuggestion);
cmdsuggestion.CommandType = CommandType.StoredProcedure;
int id = Convert.ToInt32(Session["gaduates"]);
cmdsuggestion.Parameters.Add("@id", SqlDbType.BigInt).Value = id;
consuggestion.Open();
gridview_suggestion.DataSource = cmdsuggestion.ExecuteReader();
gridview_suggestion.DataBind();
consuggestion.Close();
}
من با دستور زير دارم اطلاعاتمو توي gridview نشان مي دم فقط نمي تونم به شمسي نشون بدم ؟؟؟
private void bindgride_suggestion()
{
SqlConnection consuggestion = new SqlConnection("Data Source=MOHI-MOSI\\SQLEXPRESS;Initial Catalog=Hedayat-Web;Integrated Security=True");
SqlCommand cmdsuggestion = new SqlCommand("SelectSuggestion", consuggestion);
cmdsuggestion.CommandType = CommandType.StoredProcedure;
int id = Convert.ToInt32(Session["gaduates"]);
cmdsuggestion.Parameters.Add("@id", SqlDbType.BigInt).Value = id;
consuggestion.Open();
gridview_suggestion.DataSource = cmdsuggestion.ExecuteReader();
gridview_suggestion.DataBind();
consuggestion.Close();
}