text below datagrid

  • Thread starter Thread starter Mortar
  • Start date Start date
M

Mortar

how would i write text out below a datagrid, if the datagrid is
dynamic?

i tried putting the datagrid in the 1st row of a table, and the text
in the 2nd, but for some reason when i do that, the onItemDataBound
function for the datagrid stops working. The only way I can get it to
work again, is to take it out of the table, click on the lightning
bolt icon, and double click the function to create it again.
 
Hi Mortar:

When you say you are creating the DataGrid dynamically, do you mean
you create a new DataGrid object and add the control to the page with
Controls.Add? If so, you have to add the DataGrid on every postback
operation also, or you won't get any events from the control.
 
i didn't mean i am creating the control dynamically, i meant the
height of the data on the page will be dynamic based on the query.

anyway, i changed the document from GridLayout to FlowLayout. It seems
to work ok now but the frustrating part is it doesn't give nearly the
control in design mode as with GridLayout.
 
Back
Top