Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting string to byte Pin
Ed.Poore12-Apr-08 12:25
Ed.Poore12-Apr-08 12:25 
GeneralRe: Converting string to byte Pin
martin_hughes12-Apr-08 13:12
martin_hughes12-Apr-08 13:12 
GeneralRe: Converting string to byte Pin
Guffa12-Apr-08 13:32
Guffa12-Apr-08 13:32 
GeneralRe: Converting string to byte Pin
martin_hughes12-Apr-08 13:41
martin_hughes12-Apr-08 13:41 
GeneralRe: Converting string to byte Pin
Ed.Poore12-Apr-08 22:47
Ed.Poore12-Apr-08 22:47 
GeneralRe: Converting string to byte Pin
Guffa13-Apr-08 7:24
Guffa13-Apr-08 7:24 
GeneralRe: Converting string to byte Pin
Ed.Poore13-Apr-08 7:42
Ed.Poore13-Apr-08 7:42 
QuestionUpdating or refreshing DataGridView after database change... Pin
Niksa12-Apr-08 9:51
Niksa12-Apr-08 9:51 
Hello,

I have a problem...

In designer I have set data source to "subjektBindingSource" (without "").

Then on click on a button I delete a selected row from a database, and it works ok, but my datagridview doesn't show the changes...
<br />
SqlConnection conn = new SqlConnection();<br />
<br />
conn.ConnectionString = connStr;<br />
String naredbaSql = null;<br />
naredbaSql = "DELETE from Subjekt WHERE ID = " + idUser;<br />
<br />
            conn.Open();<br />
            <br />
            SqlCommand comand = new SqlCommand(naredbaSql, conn);<br />
            comand.ExecuteNonQuery();                              <br />
<br />
            conn.Close();<br />
<br />


So, all I want is to refresh my datagridview so it shows data from database without that row I erased. I tried with Refresh and Update methods, but it doesn't work...

can you help me?

Thank you,

Niksa
GeneralRe: Updating or refreshing DataGridView after database change... Pin
Elina Blank16-Apr-08 7:11
sitebuilderElina Blank16-Apr-08 7:11 
QuestionC# - Changing the data in the database Pin
Alessandra7712-Apr-08 9:14
Alessandra7712-Apr-08 9:14 
GeneralRe: C# - Changing the data in the database Pin
Christian Graus12-Apr-08 14:13
protectorChristian Graus12-Apr-08 14:13 
GeneralRe: C# - Changing the data in the database Pin
Alessandra7712-Apr-08 23:25
Alessandra7712-Apr-08 23:25 
GeneralLabel / Form Resizing Pin
danielk_12-Apr-08 5:25
danielk_12-Apr-08 5:25 
GeneralRe: Label / Form Resizing Pin
Anthony Mushrow12-Apr-08 5:46
professionalAnthony Mushrow12-Apr-08 5:46 
GeneralRe: Label / Form Resizing Pin
Luc Pattyn12-Apr-08 7:23
sitebuilderLuc Pattyn12-Apr-08 7:23 
GeneralPreFilterProperties Pin
danielk_12-Apr-08 5:24
danielk_12-Apr-08 5:24 
QuestionProblems to get SelectedValue from binded ComboBox Pin
Stefan Kneitz12-Apr-08 5:06
Stefan Kneitz12-Apr-08 5:06 
GeneralRe: Problems to get SelectedValue from binded ComboBox Pin
Anthony Mushrow12-Apr-08 5:17
professionalAnthony Mushrow12-Apr-08 5:17 
GeneralRe: Problems to get SelectedValue from binded ComboBox Pin
Stefan Kneitz12-Apr-08 5:22
Stefan Kneitz12-Apr-08 5:22 
GeneralRe: Problems to get SelectedValue from binded ComboBox Pin
Anthony Mushrow12-Apr-08 5:27
professionalAnthony Mushrow12-Apr-08 5:27 
GeneralRe: Problems to get SelectedValue from binded ComboBox Pin
Stefan Kneitz12-Apr-08 5:45
Stefan Kneitz12-Apr-08 5:45 
Generalcalculate elapsed seconds Pin
George_George12-Apr-08 4:47
George_George12-Apr-08 4:47 
GeneralRe: calculate elapsed seconds Pin
Anthony Mushrow12-Apr-08 5:10
professionalAnthony Mushrow12-Apr-08 5:10 
GeneralRe: calculate elapsed seconds Pin
George_George12-Apr-08 20:14
George_George12-Apr-08 20:14 
GeneralRe: calculate elapsed seconds Pin
Luc Pattyn12-Apr-08 7:21
sitebuilderLuc Pattyn12-Apr-08 7:21 

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.