| Transaction | Stock | balance | ||
| Stock1 | Stock2 | Balance1 | Balance2 | |
How create common header cell for stock1 and stock2 as Stock
in app config?
it is datagrid view?
how use
GridViewRow HeaderRow = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Insert);
TableCell Cell_Header = new TableCell();
Cell_Header.Text = "Stock";
Cell_Header.HorizontalAlign = HorizontalAlign.Center;
Cell_Header.ColumnSpan = 2;
HeaderRow.Cells.Add(Cell_Header);

Posted May 30, 2011, 10:55 PM EDT
I have used a simple html to do it.
<
table><tr>
<td rowspan="2">Transactiontd>
<td colspan="2" > Stocktd>
<td colspan="2" > balancetd> tr>
<tr> <td> Stock 1td>
<td> Stock 2td>
<td> balance 1td>
<td> balance 2td>
tr>
table>Sam HobbsRank #108 · 20.5K reputationPosted May 31, 2011, 5:32 PM EDT
Also see the replies in Datagrid view Design. If they don't help then perhaps you need to clarify your question. People trying to help might get frustrated if you create a new thread such as what you did here instead of continuing with a previous thread.
You probably must draw the headers yourself in your code but I don't know the details of how to do that.