Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: I need to get the next next text from text file Pin
Richard MacCutchan5-May-18 3:21
mveRichard MacCutchan5-May-18 3:21 
AnswerRe: I need to get the next next text from text file Pin
OriginalGriff5-May-18 3:27
mveOriginalGriff5-May-18 3:27 
AnswerRe: I need to get the next next text from text file Pin
Gerry Schmitz5-May-18 4:35
mveGerry Schmitz5-May-18 4:35 
QuestionOpenTK and text Pin
Leif Simon Goodwin4-May-18 5:39
Leif Simon Goodwin4-May-18 5:39 
QuestionBind JSON data to rows in a table MVC4 issue Pin
Member 127814644-May-18 4:06
Member 127814644-May-18 4:06 
AnswerRe: Bind JSON data to rows in a table MVC4 issue Pin
Afzaal Ahmad Zeeshan4-May-18 8:21
professionalAfzaal Ahmad Zeeshan4-May-18 8:21 
GeneralRe: Bind JSON data to rows in a table MVC4 issue Pin
Member 127814647-May-18 4:32
Member 127814647-May-18 4:32 
Questionc# GridView. Displaying tables in dropdownlist, selecting and editing them. Pin
trottl4-May-18 2:07
trottl4-May-18 2:07 
I would like to add a dropdownlist to my gridview and then selecting an avaliable table from that list. The selected table would show and i could edit it.

I already have a form made with grid view and an option to update and show record in a table. It looks like this:

C#
namespace WindowsFormsApp2
{
    public partial class Form1 : Form
    {
        SqlDataAdapter sda;
        SqlCommandBuilder scb;
        DataTable dt;
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_click(object sender, EventArgs e)
        {
            scb = new SqlCommandBuilder(sda);
            sda.Update(dt);
            MessageBox.Show("Records updated");
        }

        private void button2_click(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection("Data Source=GECKO-PM\\SQLEXPRESS;Initial Catalog=Gecko;Integrated Security=True");
            sda = new SqlDataAdapter(@"SELECT ID_vzdrzevanje, Datum, Lokacija, Ime_vrtine, Delo FROM Vzdrzevanje",con);
            dt = new DataTable();
            sda.Fill(dt);
            dataGridView1.DataSource = dt;
        }

    }
}


Thanks Smile | :)
AnswerRe: c# GridView. Displaying tables in dropdownlist, selecting and editing them. Pin
Gerry Schmitz5-May-18 4:39
mveGerry Schmitz5-May-18 4:39 
GeneralRe: c# GridView. Displaying tables in dropdownlist, selecting and editing them. Pin
trottl10-May-18 0:47
trottl10-May-18 0:47 
GeneralRe: c# GridView. Displaying tables in dropdownlist, selecting and editing them. Pin
trottl10-May-18 1:15
trottl10-May-18 1:15 
AnswerRe: c# GridView. Displaying tables in dropdownlist, selecting and editing them. Pin
trottl14-May-18 1:59
trottl14-May-18 1:59 
QuestionC# Newbie - Vector Printing of Visio Document using AxVisioViewer ActiveX control. Pin
chubbsy1-May-18 23:02
chubbsy1-May-18 23:02 
AnswerRe: C# Newbie - Vector Printing of Visio Document using AxVisioViewer ActiveX control. Pin
Eddy Vluggen2-May-18 7:36
professionalEddy Vluggen2-May-18 7:36 
GeneralRe: C# Newbie - Vector Printing of Visio Document using AxVisioViewer ActiveX control. Pin
chubbsy22-May-18 1:46
chubbsy22-May-18 1:46 
GeneralRe: C# Newbie - Vector Printing of Visio Document using AxVisioViewer ActiveX control. Pin
Eddy Vluggen22-May-18 1:48
professionalEddy Vluggen22-May-18 1:48 
QuestioniTextSharp - Saving file to a remote server Pin
User 136751141-May-18 22:21
User 136751141-May-18 22:21 
AnswerRe: iTextSharp - Saving file to a remote server Pin
Jochen Arndt2-May-18 1:46
professionalJochen Arndt2-May-18 1:46 
GeneralRe: iTextSharp - Saving file to a remote server Pin
User 136751142-May-18 1:50
User 136751142-May-18 1:50 
GeneralRe: iTextSharp - Saving file to a remote server Pin
Jochen Arndt2-May-18 2:00
professionalJochen Arndt2-May-18 2:00 
QuestionSIMD Experiment (System.Numeric.Vectors.Vector2 test) Pin
Super Lloyd29-Apr-18 16:12
Super Lloyd29-Apr-18 16:12 
AnswerRe: SIMD Experiment (System.Numeric.Vectors.Vector2 test) Pin
Jochen Arndt1-May-18 23:41
professionalJochen Arndt1-May-18 23:41 
GeneralRe: SIMD Experiment (System.Numeric.Vectors.Vector2 test) Pin
Super Lloyd2-May-18 2:35
Super Lloyd2-May-18 2:35 
GeneralRe: SIMD Experiment (System.Numeric.Vectors.Vector2 test) Pin
Jochen Arndt2-May-18 2:48
professionalJochen Arndt2-May-18 2:48 
QuestionSystem.Numerics.Vectors (SIMD) Pin
Super Lloyd29-Apr-18 14:40
Super Lloyd29-Apr-18 14:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.