I am trying to generate a function to enable users to insert table into a richTextBox winForm control.What I have is a Insert button which is fireing an InsertForm winForm.The form contains two textboxes as txtRow and txtCol and a btnInsert.
Now, I would like to know is there any way which I append the table in the position of cursor?
Can you please help me to figure this up?
Thanks for your time in advance
You can use RTF to allow tables. According to SelectedRtf documentation, if nothing is selected then the RTF string is inserted at the current point.
myRichTextBox.SelectedRtf = RTFtablestring;
Related
I tried looking triggers up for mysql but from what I can tell its no use for me here. I would like the labels to be one on top of the other. I would appreciate some help
EDIT: Because what I want might not be clear,
Whenever I insert a text on my database I want to create a label on my application with the the text I just inserted. For example when I insert "username" I want a label to be created and have the Text value equal to username. Then when I insert "password" I want another label under it with the text = "password" and so on with a third and fourth label...
Hi I'm hoping someone can help,
I have a Data Grid that has X amount of rows and I have a Text Box at the bottom of my form called 'Notes', I want the user to be able to select a row then enter a note within the Text Box and store this so when the user selects a different row the Text Box will be blank available for notes to be added for the new row. Then if the user selects a row that they have added notes to the Text Box will contain those notes.
I hope that makes sense, any ideas on how to approach this would be really appreciated.
Thanks,
Ryan
Thanks to GuidoG I have solved this, just in case anyone else has the same issue what I did was add a data binding to the grid then set the parameters. "Text" is just the property name, MyDataTable is the data source for my grid and "Notes" is the column name.
MyGrid.DataBindings.Add(new Binding("Text", MyDataTable, "Notes"));
Do i could make the database like this?
**Note: One table named "Database" with on the left is "Student Name" and on the top is "Month Payment", the CheckBox is the CheckBox in c# winforms.
What I know is I couldn't make the "Student Name" on the left corner, the text should be on top like the `"Month Payment".
But, is there a way that i could make my database like the top image and display it on the datagridview and the checkbox is replaced with the checkbox that available in c# winforms, and whenever i open my database (through system), i can check or uncheck the checkbox without have to open the "(databasename.accdb)". Is there a way?
Thank you!
Your answer will be great appreciated!
You should seperate the thoughts of designing a table with displaying data in a table. Consider such a database design:
A table named paymeht, with columns std_name of varchar, Jan, Feb ... Dec of bool (bit).
I should allow you to modify data using check box for those bool(bit) columns. And, only after fetching data from database in your code, you try to display that data in the way you like.
First of all, you should name your columns in a non-separate naming like StudentName or Student_Name. I don't know why don't the image appear to me, but you can display it of course on a datagrid with replacing you want.
I'm using Devexpress tool anyone please help me?
I'm using Devexpress tool to develop my website. But i have some problems so i hope anyone could help me. I really need it in my project. Please see here:
http://www.fiditour.com/dattourtructuyen.aspx?id=731
look section above capcha. I have 2 questions:
- How they can add textbox in gridview?
- How they can add new row by value in textbox?
Thank for reading!
That is not textboxes in the grid. They are editable cells.
You can access the values entered by using the handler of the first row, then like #Давид Дача Милинкови mentionned, you add the specified row.
So as to have a textbox inside the column you must insert a GridViewDataTextColumn not just a GridViewDataColumn.
In the CellEditorInitialize event of the Grid you can pass the Default Value to e.Editor.
Dear sir,
I m developing one application on c# windows forms by using OLEDB connection.On that one form i placed one datagridview and bind to one table.That table contains some fields....., here my problem is i want to edit table on runtime.On that table i need two links as edit,unmask.In runtime data in datagridview is seems to plain text on paper.if we click edit that row changed to text boxes and combo boxes.Sometext boxes contain passwords also.those are in ** formate.while picking unmask button those passwords are changed to actual text.while picking edit button that exploted to update, cancel.Then we change the data and pick update then data stored to database table.(i need datagridview as gridview in ASP.Net).Is there any properties for datagridview as gridview(ASP).Could you please suggest me how to resolve my prob.
Thanks in advance.
Can you, at the time of the hang, hit pause in Visual Studio to see where your code hangs?