空でなければなりません - フッタの複数の列にまたがるボタンがあります。
私はnoobであり、b)ではなく、でしたので、私はcodeによってcolumnspanを設定すると問題に遭遇しました。私はすべての細部を覚えていませんが、そこに何らかの邪魔がありました。余分な柱や何かを追加していたようです。
ここに私の解決策がありました。おそらくそれのいくつかが役に立つでしょう。私はgridview(gvDocs)のプリレンダリングでやった。
これは私のために正しく機能していたのですが、footspanのセルをプログラムで削除し、columnspanを設定していました。
コードが役立たない場合でも、恐らく人々は私を苦しめる侵略的忘却を笑うでしょう。私は時々笑います。
Protected Sub gvDocs_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvDocs.PreRender
If gvDocs.Rows.Count > 0 Then
Dim m As Integer = gvDocs.FooterRow.Cells.Count
For i As Integer = m - 1 To 1 Step -1
If i <> 8 Then '7 is the number of the column with the applychanges button in it.
gvDocs.FooterRow.Cells.RemoveAt(i)
End If
Next i
gvDocs.FooterRow.Cells(1).ColumnSpan = 6 '6 is the number of visible columns to span.
End If
End Sub
Fernando68 - ここでは、C#で
protected void gvDocs_PreRender(object sender, System.EventArgs e)
{
if (gvDocs.Rows.Count > 0) {
int m = gvDocs.FooterRow.Cells.Count;
for (int i = m - 1; i >= 1; i += -1) {
//7 is the number of the column with the applychanges button in it.
if (i != 8) {
gvDocs.FooterRow.Cells.RemoveAt(i);
}
}
gvDocs.FooterRow.Cells[1].ColumnSpan = 6;
//6 is the number of visible columns to span.
}
}
//=======================================================
//Service provided by Telerik (www.telerik.com)
//Conversion powered by NRefactory.
//Twitter: @telerik
//Facebook: facebook.com/telerik
//=======================================================
あるEDITED - あなたはColumnSpanを探している
フッター行のインデックスでセルにアクセスするために、角括弧を使用するために必要な... - http://www.dotnetjunkies.com/WebLog/joshuagough/archive/2006/06/23/141038.aspx - http://forums.asp.net/t/1270422.aspx – madcolor