hi, i dont know if this is still a question of table styles, look what i get first invoke ..ok invoke again ??? hope to hear from you again bye rado.
xrado
Posts
-
datagrid invoke and tablestyles -
datagrid invoke and tablestylesok i solved that, but what if i invoke more times. First time its working ok, when i do it second time, datagrid get screwed and starts to blink. im trying to use threads to update datagrid form dataset. and suggestions
-
datagrid invoke and tablestyleshow do i bind tablestyle back to datatable after datagrid invoke. when im updating datagrid with invoke .. private void UpdateGrid(DataSet table) { dataGrid1.DataSource=table.Tables["data"]; } dataGrid1.Invoke(new UpdateGridCallback(this.UpdateGrid), new object[]{some_data_set}); ..i lose datagrid style which is already defined. bye -- modified at 3:56 Friday 23rd September, 2005
-
datagrid firstvisiblerowi found ... :) FieldInfo fi = typeof(DataGrid).GetField("firstVisibleRow",BindingFlags.NonPublic | BindingFlags.Instance); int rownum = Convert.ToInt32(fi.GetValue(dataGrid1));
-
datagrid firstvisiblerowhow do i get the index of first visible row in datagrid :confused: bye
-
datagrid update and scrollingis there a way to update datagrid from dataset, with out loosing current datagrid view (scroll position) and cell position. im only updating row data, not insering new row. and im not doing it directly to datagrid.
-
writing to ms word document bookmarkscan find article how to do it..can you help me
-
richtextbox appendtext boldhow do i appendtext to richtextbox in bold? bye
-
dataview tablestylehow do i map tablestyle to dataview? ..its easy with dataset table names, or how do i fill dataset table with dataview.. bye
-
join tables form two odbc datasourcesis there a way to join two tables from two diffrent odbc data sources (or joining to dataset tables) ..any ideas?
-
ProcessCmdKey invoke app methodi overrided ProcessCmdKey to capture enter in datagrid and its working. now how do i catpure this keypress on application level when enter is pressed. (or how do i send signal form overrided ProcessCmdKey in mydatagrid class to application...i want to run method on that event). need help ..please bye
-
DataGrid Row Selectadd to datagrid mouse click event handler dataGrid.Select(dataGrid.CurrentCell.RowNumber);
-
help me override keypress in datagridwhen i press enter i want to select the whole row in datagrid so i added .... this.dataGrid1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.DataGrid1KeyPress); .... void DataGrid1KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) dataGrid1.Select(dataGrid1.CurrentCell.RowNumber); } ..and i overrided onkeypress in mydatagrid with protected override void OnKeyPress(KeyPressEventArgs e) { base.OnKeyPress (e); } but not working...what is missing??
-
display datagrid row on textBoxesdirectly form datagrid textBox.Text= dataGrid1[rowNum, collNum].ToString(); or directly from dataset textBox.Text = ds.Tables["table"].Rows[rowNum]["coll_name"].ToString(); add it to double event on datagrid
-
dataset to arrayhow do fill single dimension array with dataset or how do i fill an array directly from odbcDataAdapter
-
color specific rows in datagridis there a simple way to change background color of the row, based on its value...(based on cell value in same row)
-
add method to controlplease:(
-
add method to controli would like add ScrollToRow method to datagrid can you please show me how do i do this i found this code: public void ScrollToRow(int theRow) { // // Expose the protected GridVScrolled method allowing you // to programmatically scroll the grid to a particular row. // if (DataSource != null) { GridVScrolled(this, new ScrollEventArgs(ScrollEventType.LargeIncrement, theRow)); } }
-
postgresql odbchas anyone got postgres and odbc working? im trying the whole day...the code seem ok (no error reporting)..but i cant get or put any data to database. im runnig postgres on linux server. i tried from pgAdmin with same SQL command and working..mhh..any idea? (i have postgresql odbc clinet installed) string pgConnectionString = "DRIVER={PostgreSQL};" + "SERVER=192.168.1.100;" + "DATABASE=test;" + "UID=postgres;" + "PASSWORD=postgres;"; OdbcConnection pgConn = new OdbcConnection(pgConnectionString); try { pgConn.Open(); } catch (OdbcException eee) { error-handing(eee) } string SQL = "INSERT INTO data VALUES(default, '123', '1qwer', 'qwrwrw')"; OdbcDataAdapter myAdapter = new OdbcDataAdapter(SQL,pgConn); pgConn.Close();
-
Editing problem in Datagridim also playing with postgres odbc, but not working. have you found where is the problem??