N
needin4mation
Please Consider this code snippet:
private void dgdHistory_ItemCreated(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item ||
e.Item.ItemType == ListItemType.AlternatingItem ||
e.Item.ItemType == ListItemType.EditItem)
{
TableCell myChangeCell = e.Item.Cells[0];
Button myChangeButton = (Button) myChangeCell.Controls[0];
Response.Write("myTableCell: " + myTableCell.Width + ", ");
....
The cell never reports a width. It is just blank. The Response.Write
works. I can see the "myTableCell: , ." There is just no width
reported.
Any ideas? Thanks.
private void dgdHistory_ItemCreated(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item ||
e.Item.ItemType == ListItemType.AlternatingItem ||
e.Item.ItemType == ListItemType.EditItem)
{
TableCell myChangeCell = e.Item.Cells[0];
Button myChangeButton = (Button) myChangeCell.Controls[0];
Response.Write("myTableCell: " + myTableCell.Width + ", ");
....
The cell never reports a width. It is just blank. The Response.Write
works. I can see the "myTableCell: , ." There is just no width
reported.
Any ideas? Thanks.