can any body tell,how to add a table in a column of c#.net datagrid.
-
i want to perform following functionailty from c#.net datagrid -------------------------- name address fist last -------------------------- abc df pk abc df pk -------------------------- i.e. splitting column name into two columns 'first' and 'last'. we can't span column in c#.net datagrid. can any body tell,how to add a table in a column of c#.net datagrid.
-
i want to perform following functionailty from c#.net datagrid -------------------------- name address fist last -------------------------- abc df pk abc df pk -------------------------- i.e. splitting column name into two columns 'first' and 'last'. we can't span column in c#.net datagrid. can any body tell,how to add a table in a column of c#.net datagrid.
Override the ItemDataBound event and insert whatever controls you want.
only two letters away from being an asset
-
Override the ItemDataBound event and insert whatever controls you want.
only two letters away from being an asset
-
You are confused. C# is a langauge that implements .NET Framework. ASP.NET is a platform for developing and delivering web applications. DataGrid is a control used in Web Forms and GridView is a control used in Win Forms. If you would explain clearly, with correct terminology, your chances of recieving an answer would be enhanced.
only two letters away from being an asset
-
You are confused. C# is a langauge that implements .NET Framework. ASP.NET is a platform for developing and delivering web applications. DataGrid is a control used in Web Forms and GridView is a control used in Win Forms. If you would explain clearly, with correct terminology, your chances of recieving an answer would be enhanced.
only two letters away from being an asset
sorry.i was making mistake.i want to implement this using dataGridView.now can u plz tell me? i want to add table in a column just like this bold statement.but this is for datagrid can u tel me for gridview. public void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.Header) { e.Item.Cells.RemoveAt(2); e.Item.Cells[1].ColumnSpan = 2; e.Item.Cells[1].Text = "<table style='FONT-WEIGHT: bold;WIDTH: 100%; COLOR: Black; TEXT-ALIGN: center'><tr align=center><td colspan = 2 style='BORDER-BOTTOM:cccccc 1pt solid'>Name</td></tr><tr align =center ><td style ='BORDER-RIGHT: cccccc 1pt solid'>FName</td>< td>LName</td></tr></table>"; } }
modified on Monday, January 26, 2009 4:23 AM