|
My screen contains a DataGrid(System.Windows.Forms)control, in Save button click i am inserting the data present in the grid. I have given Alt+S as shortcut key for my Save button, ext present in the DataGridTextBoxColumn is not getting inserted while i use Alt+S, but inserting when i click Save through Mouse, it is due to Uncommitted data to TextBoxColumn, any body help me in solving this problem.
srikanth
|
|
|
|
|
hi all,
I've figured out how to set DataGridView columns to wrap text if the
text doesn't fit in the alloted column width.
This is great, but the row height isn't enough to display the wrapped
text. Is there a way to set the height so that all wrapped text in the
cell is displayed?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Anu,
The first two soulution given in the following link might solve your problem, I have not tried them.
Autosize rows in datagrid[^]
|
|
|
|
|
hi sathish,
thanks for those links. i tried it. the second link worked for me than the first one.
Thanks once again
Regards
Anuradha
|
|
|
|
|
hi
my application is written in C# .net 2003 compact framework for desktop and CE device.
i am unable to control the tab order. is there any way to do it. rearranging the controls is not a solution for me. is there anyother way.
thanks.
|
|
|
|
|
Hi, TabIndex property is supported since .NET CF 2.0 (i.e. VS 2005).
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I know with regular windows forms you can set the tab order by going to view on the menu bar and then click tab order. It will number all the controls and you can renumber them. I don't know if that same feature works with the compact framework. I would think it would.
Ben
|
|
|
|
|
Hi, does anyone know where i can get coding or just info on the classes and methods of the Tamir library?? I recently acquired it and cannot utilize it until i know exactly whats going on with it. My other question is does anyone know how to set up and send files over a sftp protocol with linux and windows (in C#) in a similar fassion.
P.S Iv never worked with sftp or ftp on a coding level so any assistance you could give me would be greatly appreciated.
George Berry
|
|
|
|
|
What does this component do? Where did you get it? Without this information, there's not a lot I can do.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I just found it is part of an example on sourceforge. But its not as important as finding out how the sftp works, necessary lib's and especially lin/win compatability. So regardless of this lib file that someone created, how do i sftp??
George Berry
|
|
|
|
|
Will this[^] article help?
/ravi
|
|
|
|
|
Thanks, now all i have to to is finish the serial port prog im working on, decypher whats going on in that example, and im all set.
George Berry
|
|
|
|
|
Hi I am developing a windows application (VS 2003) in which it contains some buttins and a grid. The Grid has to show all the data from a csv file, for this i am reading all the data from csv file into datatable and giving that datatable as a datasource to data grid.
dtTable = new DataTable();
dtTable.Columns.Add("Name");
dtTable.Columns.Add("Time1");
dtTable.Columns.Add("Time2");
dtTable.Columns.Add("Path");
dtTable.Columns.Add("IconName");
dtTable.AcceptChanges();
if(File.Exists(Application.StartupPath + "\\Recordings.csv"))
{
StreamReader sreader = new StreamReader(Application.StartupPath + "\\File.csv");
string strval = sreader.ReadLine();
while (strval != null)
{
DataRow row1 = dtTable.NewRow();
string[] str = strval.Split(',');
for(int i = 0; i < str.Length; i++)
{
row1[i] = str[i];
}
dtTable.Rows.Add(row1);
strval = sreader.ReadLine();
}
dtTable.AcceptChanges();
sreader.Close();
// }
dtGrid.DataSource = dtTable;
dtGrid.Refresh();
I am using the above code for showing the contents of file to Grid.
if user clicks start button on the form, after completing the action i want to add a row to grid. For this i am writing the new row to the CSV file and calling the above code.
But it is giving error: "Controls created on one thread cannot be parented to a control on a different thread."
Any one please help me.
Thanks in Advance
|
|
|
|
|
You need to always deal with your controls in your main thread.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
use an event to trigger the creation of your control on the main thread, or use this.InvokeRequired to force you control to be created on the main thread
|
|
|
|
|
Thank you for your reply.
I dont know how to use invoke.
If you know any links regarding the invoke and triggering events please provide them to me.
Thanks in Advance
Thanks and Regards
Ramu
|
|
|
|
|
Hello Everybody,
I am not able to change the sql connection string of crystal report.
Actually I had two database one testing and other online database .
I had created the reports on database testing but now i want change it to online database but I am not able to do this.
Regards,
rahul saini
|
|
|
|
|
How do you define your connection string?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Hi,
Thanks for replying me.
I had define connection string using wizard.
I am working on .net 2005 and using sql 2000 as database.
Regards,
rahul saini
|
|
|
|
|
Rahul,
Try to search for this property setdatabaselogon of the ReportDocument class.
|
|
|
|
|
monuSaini wrote: I had define connection string using wizard.
*shudder*
Don't! Learn how it works and don't rely on wizards.
Somewhere there should be generated code that contains the connection string. Alter that to get the connection string from the config file.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
hi all,
how to add data from database table to the combobox,
where i want to read a certain feild and when selected an other feild would be written in somewhere else
|
|
|
|
|
Which technology are you using: Windows Forms, ASP.net, WPF or other?
|
|
|
|
|
costavo wrote: how to add data from database table to the combobox,
where i want to read a certain feild and when selected an other feild would be written in somewhere else
SqlConnection dbConn = new SqlConnection ("connectionstring");<br />
dbConn.Open ();<br />
SqlDataAdapter da = new SqlDataAdapter ("SELECT town FROM Table", dbConn);<br />
da.Fill (ds);<br />
<br />
DropDownList1.DataSource = ds.Table[0];<br />
DropDownList1.DataBind ();
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
You can also check my reply here[^].
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|