ASP.NET ColumnSpan ਪ੍ਰਤੀਯੋਗਿਤਾ

ਵਿਆਖਿਆ ਅਤੇ ਵਰਤੋਂ

ColumnSpan ਪ੍ਰਤੀਯੋਗਿਤਾ ਵਿੱਚ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ ਤਾਂ ਇਹ Table ਕੰਟਰੋਲ ਵਿੱਚ TableCell ਦੇ ਅਕਸਰ ਹੱਦ ਦੇ ਕਿਸੇ ਤਰ੍ਹਾਂ ਦੀ ਸ਼ਰਤ ਨੂੰ ਸੈੱਟ ਕਰਨ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ。

ਗਰੰਥ

<asp:TableCell ColumnSpan="num" runat="server">
Some content
</asp:TableCell>
ਪ੍ਰਤੀਯੋਗਿਤਾ ਵਰਣਨ
num TableCell ਦੇ ਅਕਸਰ ਹੱਦ ਦੇ ਕਿਸੇ ਤਰ੍ਹਾਂ ਦੀ ਸ਼ਰਤ ਦਿੰਦਾ ਹੈ。

ਇੰਸਟੈਂਸ

ਹੇਠ ਦੇ ਉਦਾਹਰਣ ਵਿੱਚ ColumnSpan ਨੂੰ "2" ਸੈੱਟ ਕੀਤਾ ਗਿਆ ਹੈ:

<form runat="server">
<asp:Table id="tab1" runat="server">
<asp:TableRow>
<asp:TableCell ColumnSpan="2">Some Content</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>Some Content</asp:TableCell>
<asp:TableCell>Some Content</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

ਇੰਸਟੈਂਸ

TableCell ਕੰਟਰੋਲ ਲਈ ColumnSpan ਪ੍ਰਤੀਯੋਗਿਤਾ ਸੈੱਟ ਕਰੋ