Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Datagrid - Rows

Empfohlene Antworten

Veröffentlicht

Hi!

Folgendes Problem habe ich...hatte hier schon mal gepostet aber keine hatte es verstanden :-)

Ich habe ein Datagrid erstellt mit jeweils 6 spalten in einer spalte ist ein eintrag leer (siehe bildanhang).

Immer wenn was leeres kommt in dieser spalte, möchte ich nur diese Zeilen eingeblendet haben. Die Zeilen die vollgefüllt sind komplett, möchte

ich gern ausblendet haben. Ich bekomm das nur mit einer gesamten Spalte hin (siehe Code) aber mit den "Rows" is das

schwerer :( hat einer eine idee?

Grüße Basti

hier der bildlink: http://img106.imageshack.us/img106/2080/15483251gy8.jpg


Dim Row As DataRow

For Each Row In DsTasks1.Tables("TASKS").Rows

                If Not Row.IsNull("CLSDDATE") Then


                    DataGrid1.Columns(0).Visible = True

                    DataGrid1.Columns(1).Visible = True

                    DataGrid1.Columns(2).Visible = True

                    DataGrid1.Columns(3).Visible = True

                    DataGrid1.Columns(4).Visible = True

                    DataGrid1.Columns(5).Visible = True

                    DataGrid1.Columns(6).Visible = True


                    SDATasks.Fill(DsTasks1, "TASKS")

                    DataGrid1.DataSource = DsTasks1

                    DataGrid1.DataBind()

                Else

                    DataGrid1.Columns(0).Visible = False

                    DataGrid1.Columns(1).Visible = False

                    DataGrid1.Columns(2).Visible = False

                    DataGrid1.Columns(3).Visible = False

                    DataGrid1.Columns(4).Visible = False

                    DataGrid1.Columns(5).Visible = False

                    DataGrid1.Columns(6).Visible = False


                    SDATasks.Fill(DsTasks1, "TASKS")

                    DataGrid1.DataSource = DsTasks1

                    DataGrid1.DataBind()

                    Try

                        Convert.ToInt32(Row("CLSDDATE"))

                    Catch

                    End Try

                End If

            Next Row

ähm - wenn ich dich *richtig* verstehe, dann ist das konzeptionell gesehen schwachsinn. du kannst in einem DG nur gesamte Columns ausblenden, aber nicht auf zeilenebene.

bitte spezifiziere näher, was du genau willst, und warum.

s'Amstel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.