Vitajte na [www.pocitac.win] Pripojiť k domovskej stránke Obľúbené stránky
Kliknite na tlačidlo " Štart " vo Windows a vyberte " Visual Studio " aplikácie z menu " Všetky programy " .
2
Kliknite na " Súbor " a . " Otvoriť " otvorte + + C program , do ktorého chcete použiť pre výber dáta pomocou ovládacieho prvku GridView
3
Pridajte nasledujúci kód po " ClientID " riadku :
chránené void gridview1_rowediting ( object sender , gridviewediteventargs e ) klipart
{ klipart
int p ;
p = e.neweditindex ;
p + = 2 ;
string ClientID = " ctl00_contentplaceholder1_gridview1_ctl " ;
string startdate ;
if ( p < = 9 )
{
startdate = ClientID + " 0 " + p.tostring ( ) + " _txt_when " ;
}
iného
{
startdate = ClientID + p.tostring ( ) + " _txt_when " ;
}
reťazec targetdate ;
if ( p < = 9 )
{
targetdate = ClientID + " 0 " + p.tostring ( ) + " _txt_tdate " ;
}
iného
{
targetdate = ClientID + p toString ( ) + " _txt_tdate " ;
}
Date1.CalendarDateString = " 03.14.2011 " ;
Date1.CalendarDate = DateTime.Now ;
4
Pridajte nasledujúci riadok do "
" časti svoje webové stránky s GridView riadenie pomocou Windows Poznámkový blok : < link href = " cal /popcalendar.css " type = " text /css " rel = " stylesheet " /> .
5
Kliknutím na tlačidlo " Súbor " a " Uložiť " pridať základný výber dáta s GridView v C + + programu .