Vitajte na [www.pocitac.win] Pripojiť k domovskej stránke Obľúbené stránky
Kliknite na tlačidlo " Štart " vo Windows , a vyberte " Microsoft Office " , " Microsoft Visual Studio . "
2
Kliknite na " Otvoriť " a vyberte C program , v ktorom chcete pridať textového poľa bunky v DataGridView forme
3
Pridajte nasledujúci kód po " System.Windows.Forms " riadku v programe : .
Verejné Zdedené z nehnuteľnosti CellTemplate ( ) As DataGridViewCell
Get
Späť TestBase.CellTemplate
End Get klipart
Set ( byval value Ako DataGridViewCell )
( hodnota isnot prázdny ) AndAlso _
Nie value.GetType ( ) . IsAssignableFrom ( gettype ( TextCell ) ) _
Potom
throw new InvalidCastException ( " Očakávaná TextCell " )
End If
TestBase.CellTemplate = hodnota
End Set End Property
4
Kliknite na " Súbor " , " Uložiť " pridať textové pole bunky v DataGridView forme svojho C programu .