Click here to Skip to main content
15,913,669 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: long sms sending using c# Pin
eraser95010-May-10 5:17
eraser95010-May-10 5:17 
GeneralRe: long sms sending using c# Pin
Dave Kreskowiak10-May-10 12:11
mveDave Kreskowiak10-May-10 12:11 
GeneralRe: long sms sending using c# Pin
Michel Godfroid10-May-10 21:07
Michel Godfroid10-May-10 21:07 
GeneralRe: long sms sending using c# Pin
Dave Kreskowiak11-May-10 2:03
mveDave Kreskowiak11-May-10 2:03 
AnswerRe: long sms sending using c# Pin
Michel Godfroid10-May-10 21:00
Michel Godfroid10-May-10 21:00 
AnswerRe: long sms sending using c# Pin
Ankur\m/10-May-10 21:31
professionalAnkur\m/10-May-10 21:31 
Questiondeleted DataRows just vanishes from DataTable, no way to access them Pin
imak27-Apr-10 10:17
imak27-Apr-10 10:17 
AnswerRe: deleted DataRows just vanishes from DataTable, no way to access them Pin
imak28-Apr-10 3:11
imak28-Apr-10 3:11 
I have this test code where I can see the same behavior. Can someone point what am I doing wrong here?

static void Main(string[] args)
{
DataTable table = new DataTable();

DataColumn col = new DataColumn("ID", System.Type.GetType("System.Int32"));
table.Columns.Add(col);

for (int i = 0; i < 10; i++)
{
DataRow row = table.NewRow();
row["ID"] = i;
table.Rows.Add(row);
}
Console.WriteLine(table.Rows.Count);


for (int i = 0; i < table.Rows.Count;i++ )
{
if (Convert.ToInt32(table.Rows[i]["ID"]) == 4)
{
table.Rows[i].Delete();
break;
}
}
Console.WriteLine(table.Rows.Count);


DataTable deletedRows = table.GetChanges(DataRowState.Deleted); // This returns NULL, shouldn't it have one row here???
for (int i = 0; i < deletedRows.Rows.Count; i++)
{
Console.WriteLine("Deleted: " + deletedRows.Rows[i]["ID",DataRowVersion.Original].ToString());
}


}
GeneralRe: deleted DataRows just vanishes from DataTable, no way to access them Pin
imak28-Apr-10 3:26
imak28-Apr-10 3:26 
AnswerRe: deleted DataRows just vanishes from DataTable, no way to access them Pin
Shameel23-May-10 5:42
professionalShameel23-May-10 5:42 
AnswerRe: How to get User Name of a machine present in LAN Pin
Eddy Vluggen24-Apr-10 23:25
professionalEddy Vluggen24-Apr-10 23:25 
QuestionHow to get source code of a popup window via webbrowser? Pin
bilalkorkmaz20-Apr-10 2:19
bilalkorkmaz20-Apr-10 2:19 
QuestionIE show up on Top of parentForm Pin
sri_009919-Apr-10 20:48
sri_009919-Apr-10 20:48 
AnswerRe: IE show up on Top of parentForm Pin
Eddy Vluggen24-Apr-10 23:28
professionalEddy Vluggen24-Apr-10 23:28 
GeneralRe: IE show up on Top of parentForm Pin
sri_009925-Apr-10 19:29
sri_009925-Apr-10 19:29 
GeneralRe: IE show up on Top of parentForm Pin
Eddy Vluggen25-Apr-10 23:28
professionalEddy Vluggen25-Apr-10 23:28 
QuestionUnable to change the properties of the Month Calendar Control on my forms app. Pin
Squire Dude18-Apr-10 11:36
Squire Dude18-Apr-10 11:36 
AnswerRe: Unable to change the properties of the Month Calendar Control on my forms app. Pin
Som Shekhar18-Apr-10 17:32
Som Shekhar18-Apr-10 17:32 
GeneralRe: Unable to change the properties of the Month Calendar Control on my forms app. Pin
Squire Dude19-Apr-10 4:19
Squire Dude19-Apr-10 4:19 
GeneralRe: Unable to change the properties of the Month Calendar Control on my forms app. Pin
Som Shekhar19-Apr-10 4:25
Som Shekhar19-Apr-10 4:25 
GeneralRe: Unable to change the properties of the Month Calendar Control on my forms app. Pin
Squire Dude19-Apr-10 5:31
Squire Dude19-Apr-10 5:31 
GeneralRe: Unable to change the properties of the Month Calendar Control on my forms app. Pin
Som Shekhar19-Apr-10 5:43
Som Shekhar19-Apr-10 5:43 
GeneralRe: Unable to change the properties of the Month Calendar Control on my forms app. Pin
Squire Dude19-Apr-10 6:28
Squire Dude19-Apr-10 6:28 
GeneralRe: Unable to change the properties of the Month Calendar Control on my forms app. Pin
Som Shekhar19-Apr-10 6:31
Som Shekhar19-Apr-10 6:31 
GeneralRe: Unable to change the properties of the Month Calendar Control on my forms app. Pin
Squire Dude19-Apr-10 10:34
Squire Dude19-Apr-10 10:34 

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.