Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
GeneralRe: Filtering records in a DataGrid Pin
Sean897-May-06 7:24
Sean897-May-06 7:24 
Questionwhy does my application flicker??!!! Pin
Susuko7-May-06 1:26
Susuko7-May-06 1:26 
AnswerRe: why does my application flicker??!!! Pin
Christian Graus7-May-06 1:32
protectorChristian Graus7-May-06 1:32 
QuestionDataGrid problem Pin
narendrakumarp7-May-06 0:19
narendrakumarp7-May-06 0:19 
AnswerRe: DataGrid problem Pin
Robert Rohde7-May-06 3:01
Robert Rohde7-May-06 3:01 
QuestionListing Project Forms Pin
freshonlineMax6-May-06 23:15
freshonlineMax6-May-06 23:15 
AnswerRe: Listing Project Forms Pin
Robert Rohde7-May-06 3:00
Robert Rohde7-May-06 3:00 
GeneralRe: Listing Project Forms Pin
freshonlineMax7-May-06 19:49
freshonlineMax7-May-06 19:49 
QuestionC# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 19:15
Phil C6-May-06 19:15 
AnswerRe: C# equivalent to char * (well, System.IntPtr)?? Pin
DigitalKing6-May-06 20:29
DigitalKing6-May-06 20:29 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 20:51
Phil C6-May-06 20:51 
AnswerRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus6-May-06 20:39
protectorChristian Graus6-May-06 20:39 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 21:07
Phil C6-May-06 21:07 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus6-May-06 21:16
protectorChristian Graus6-May-06 21:16 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 21:27
Phil C6-May-06 21:27 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus6-May-06 21:44
protectorChristian Graus6-May-06 21:44 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 22:26
Phil C6-May-06 22:26 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus7-May-06 1:32
protectorChristian Graus7-May-06 1:32 
GeneralYup...that did the trick...thanx Pin
Phil C6-May-06 23:59
Phil C6-May-06 23:59 
GeneralRe: Yup...that did the trick...thanx Pin
Christian Graus7-May-06 1:34
protectorChristian Graus7-May-06 1:34 
AnswerRe: C# equivalent to char * (well, System.IntPtr)?? Pin
rudy.net7-May-06 3:26
rudy.net7-May-06 3:26 
QuestionDataGrid in ASP.NET App Using C# Pin
kayos5926-May-06 17:10
kayos5926-May-06 17:10 
Im having problems updating my grid. The grid loads fine, the edit button functions fine(bringing up textboxes)...I update the data....click "Update" and it reloads the grid. I think this is caused because my form load reloads the grid again but I can't seem to get my grid to show unless I do this.

Attached is my form load and update statement....(ps. it enters my update function but the text value is the pre-updated value)
<br />
public void Page_Load(Object sender, EventArgs e)<br />
{ <br />
_sqlStmt = "SELECT Nm as [Name], OfficeNm as [Office Name], HomePhone as Home, OfficePhone as Office, Address FROM contacts";<br />
oleDbConnection1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = c:\\db.mdb";<br />
oleDbDataAdapter1.SelectCommand.CommandText = _sqlStmt;<br />
dataSet1.Clear();<br />
oleDbDataAdapter1.Fill(dataSet1, "Contacts");<br />
BindGrid();<br />
}<br />
<br />
<br />
void BindGrid()<br />
{<br />
	Trace.Write ("**IN_BindGrid");<br />
	MyDataGrid.DataSource = dataSet1.Tables["Contacts"].DefaultView;<br />
	MyDataGrid.DataBind();<br />
}<br />
<br />
<br />
public void MyDataGrid_Update(Object sender, DataGridCommandEventArgs e) <br />
{<br />
	Trace.Write ("**In_MyDataGrid_Update");<br />
	// For bound columns the edited value is stored in a textbox,<br />
	// and the textbox is the 0th element in the column's cell<br />
	string Name = ((TextBox)e.Item.Cells[1].Controls[0]).Text;<br />
	string OfficeNm = ((TextBox)e.Item.Cells[2].Controls[0]).Text;<br />
	string Home = ((TextBox)e.Item.Cells[3].Controls[0]).Text;<br />
	string Office = ((TextBox)e.Item.Cells[4].Controls[0]).Text;<br />
	string Address = ((TextBox)e.Item.Cells[5].Controls[0]).Text;<br />
<br />
        // Perform the update.<br />
	//sqlDataAdapter1.Update(ds);<br />
	oleDbDataAdapter1.Update(dataSet1);<br />
	// Reload the grid.<br />
	BindGrid();<br />
}<br />
 <br />


Any help is greatly appreciated....

-Kay

-- modified at 23:13 Saturday 6th May, 2006
Questionspeech sdk5.1 Pin
TheEagle6-May-06 16:54
TheEagle6-May-06 16:54 
AnswerRe: speech sdk5.1 Pin
Ravi Bhavnani6-May-06 18:01
professionalRavi Bhavnani6-May-06 18:01 
GeneralRe: speech sdk5.1 Pin
TheEagle6-May-06 22:16
TheEagle6-May-06 22:16 

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.