עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

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 ב#C..

Featured Replies

פורסם

שלום,

אני רוצה ל"עברת" את הכותרת של הDataGrid שלי מהכותרת שהוא מקבל מהDataBase.

הצלחתי לעדכן בעקרון, אבל רק בשאילתה הראשונה.

אבל הבעיה מתחילה כשאני מריץ שאילתה חדשה השדות של הדאטהבייס חוזרים בנוסף לשדות ה"מעוברתות"

(בשדות ששיניתי לפני זה מופיעים אחרי הרצת השאילתה השניה ערכי NULL).

איך אפשר לסדר את זה שהכותרת החדשות יתפסו את מקומן של השדות מהDB??..

תודה רבה!!..

פורסם

אתה ב- .net 1 ?

בכל אופן הדוגמא שלי היא מ- .net 2 אבל העקרון הוא אותו עקרון

הכי חשוב זה שתוריד לו את הדגל שמורה לו לייצר את העמודות באופן אוטומטי

AutoGenerateColumns=false


<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="ID" HeaderText="מזהה" />
<asp:BoundField DataField="PARENT_ID" HeaderText="מזהה אב" />
<asp:BoundField DataField="NAME" HeaderText="שם" />
</Columns>
<RowStyle BackColor="#ffffff" ForeColor="#0000ff"/>
</asp:GridView>

פורסם
  • מחבר

תודה אחי!

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

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.