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();
You have to describe the columns with DataColumn objects.
Here is a sample demonstrating this approach - https://filetransfer.infragistics.com/public.php?service=files&t=00f767dd0cfd11d5aabaeb1c0743d626.
Please let us know if you need further assistance.