Gridview Display When no data to bound
-
Hi, I have a gridview and I have used Footer template to insert data. When there is no data returned from select method of object datasource The empty data text is displayed and nothing displays. I want that when there is no data then atleast the footer templates should be displayed so that new record can be inserted. How can i do this. Please help...
-
Hi, I have a gridview and I have used Footer template to insert data. When there is no data returned from select method of object datasource The empty data text is displayed and nothing displays. I want that when there is no data then atleast the footer templates should be displayed so that new record can be inserted. How can i do this. Please help...
Retrieve your data in a dataset begore databinding it to a gridview. Add a newrow() to you dataset if it has 0 rows: i.e.: myTable.Rows.Add(myTable.NewRow()); Your Gridview wil display an empty gridview row but also the footerrow.
In Word you can only store 2 bytes. That is why I use Writer.