jqdesigner says:
it is working fine but I need to know how I can change the text fof the vertical coulmn names which are coming from database table also I wanted to show no record found if query return zero record.
1) If you need to change the column name value which you have using in select Statement then just alias it in your select query it will work fine.
jqdesigner says:
cmd.CommandText =
"select Test1, Test2, Test3,Test4, Test5 from TestTable where RequestID = "
+ sID;
For eg. If you need to Name Test1 column name as EmployeeId , Test2 column name as EmployeeName, Test3 column as Address , Test4 column name as City, Test5 column name as State the you can modify your select statement as below.
cmd.CommandText = "select Test1 EmployeeId, Test2 EmployeeName, Test3 Address,Test4 City, Test5 State From TestTable where RequestID = " + sID;
2) Just change below code line to see the no record found result as you are using select query you need to check in DataSet for DataTable contain rows greater than zero.
jqdesigner says:
if
(ds.Tables.Count > 0)
Replace with
if (ds.Tables[0].Rows.Count > 0)