I noticed that if my SQL table attached to my WEBDATAGRID is empty, the columns are not displayed in WEBDATAGRID, I want to display them even if the SQL table is empty
Thank you for contacting us.
Please provide a sample or a code-snippet demonstrating how you bind the WebDataGrid so we could propose a solution for you.
We are looking forward to hearing from you.
In fact, I want that the heads appears even if the table is emply.
With the bellow, when the table is empty, the WEBDATAGRID appear without heads :
string sql; DataTable dt; sql = "select * from TEST"; dt = CL_CONNEXION.SELECT_DT(CL_CONNEXION.CN, sql);GRID.DataSource = dt;GRID.DataBind();