且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

按钮单击事件在ajaxtab控件选项卡中不起作用

更新时间:2023-12-06 11:18:58

Please check like are you getting the Values or not?

If your query fine then please see change something like



Please check like are you getting the Values or not?
If your query fine then please see change something like

using (MySqlDataReader rdr = command.ExecuteReader())
                    {
//But here you will see only last records.So just add all the records in some list or array variable and then add that temp variable to gridview.
                        while (rdr.Read())
                        {
                            transactionGridView.DataSource = rdr.GetString(rdr.GetOrdinal("Your table column names");
                            transactionGridView.DataBind();
                            transactionGridView.Visible = true;
                        }
                    }


You should add columns to the Gridview or use AutogeneratedColumns property to true to view.



Refer



http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.columns(v=vs.110).aspx[^]
You should add columns to the Gridview or use AutogeneratedColumns property to true to view.

Refer

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.columns(v=vs.110).aspx[^]