:-DJokes are fine but I am looking for serious comments on this issue
Ketty
:-DJokes are fine but I am looking for serious comments on this issue
Ketty
I am not quite sure if I understand the idea completely. Please advice.
Ketty
This is simple Designer generated code. How to reach that property. 1. Select ur DataGridView control on designer. 2. F4 3. Columns (collection) 4. Select 5 On right side u see all column properties. 6. Change ColumnType to DataGridViewLinkColumn namespace WindowsApplication1 { partial class Form1 { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.actionTypesBindingSource = new System.Windows.Forms.BindingSource(this.components); this.fISM0702DataSet = new WindowsApplication1.FISM0702DataSet(); this.actionTypesTableAdapter = new WindowsApplication1.FISM0702DataSetTableAdapters.ActionTypesTableAdapter(); **this.actionTypeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewLinkColumn();** this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.actionTypesBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fISM0702DataSet)).BeginInit(); this.SuspendLayout(); // // dataGridView1 // this.dataGridView1.AutoGenerateColumns = false; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGr
Thanks, I did see an example of "Microsoft.CSharp.CSharpCodeProvider class" on CodeProject, if you or any body has used it. Is it performance promising?
Ketty
Did u try using DataGridViewLinkColumn? If ur grid id bound to datasource, goto properties -> Columns -> select the appropriate column from ur columns list -> and change ColumnType property Let me know if that works or am i thinking too simple. ;)
Ketty
Windows or web?
Ketty
I need to write a performance driven utility that allows user to write C# code in a text area. When they click on execute to see what is the final out, utility should complie and run the code written by user as if it is a function body. e.g. I am trying to achieve: private void ExecuteUser()//Function in Utility { /* -------Body of this function will be filled by User Code from text area at click of button. */ }
I am not a C# coder for past few years:((, so any code snippet would be awesome. We are using .Net 2.0. VS 2005.
Ketty
If u r trying to find a solution on postback to reset all controls of a type - u can loop through all child controls of a page check the type and depending on that take an action. If u r trying to find a solution by java script - use a naming style (like txtreset_1) of the set u want to treat alike. In ur function loop through all controls and with the help of regex (for txtreset_) find matches (using regex match funtion) to ur naming style. for all the match that u find take the desired action. Hope this gives u some idea of how to go about. Ketty
This is a problem i agree. I faced same problem a while ago. I do not have any idea how to add a tooltip to the list, and would appriciate if any body has that solution. For my application what i did was - remove the width of the control and thus in turn the control takes the width of the broadest item in the list. In order not to mess the rest of the UI, do not place any other control in same horizontal line with this one. Like it or not - Live with it. (was my attitude due to time constraints.) Ketty
I have not understood ur question properly....but what i guess u want to know... is when u go from one page to another how can u get the previous page. If im correct then answer is u can use HttpContext.UrlRefferal this keeps a tract of the previous page. Ketty
Cheers Enjoy Programming ;) Ketty
class test { public string test ( string LD ) { LD = "haha"; } } // end of class test class Form1:System.Windows.Forms.Form { private void btnConvert_Click(object sender, System.EventArgs e) { string date; test ts = new test(); date = ts.test(); cL.CalendarConversion(date); // date is not null now } }//end of class form1 Is this that u wanted? :confused: Ketty
you want to know for windows forms or ASPX pages. Plz Specify.:( Ketty
First check that u have called ur testing function at some point in ur Form1. Second I tried ur code and it works for me as far as reading ccF.d is concerned. So i guess there is come problem in the way ur accessing it. My working code of Form 1 is as under public class Form1 : System.Windows.Forms.Form { public string d = "HI"; private void Form1_Load(object sender, System.EventArgs e) { testing(); } private void testing() { dbConnection dbcon = new dbConnection(); MessageBox.Show(dbcon.Connection()); } } public class dbConnection { public string SQl; public string Connection() { Form1 ccF = new Form1(); return SQl = ccF.d; } } Ketty
try to use any Loop to generate the table rather directly binding it dataset to the table control. Ketty
In that case private void button1_Click(object sender, System.EventArgs e) { db1 a = new db1(); dataGrid1.DataSource = Connect(txtbox1.text); dataGrid1.DataMember = ?? } Class DBConnection { public DataSet Connect(String TextVal) { DataSet ds = new DataSet(); string SQL = "Select * From Table Where Col1 ='" + TextVal + "'"; //?? ....do ur code; Return ds } } Is that fine now ;) Ketty
From Life Cycle point of view when the page's Initialise id called it in turn calls the init of all controls on that page. At this point the control is initialised with all its properties. And finally after all the controls the Page initialise gets over. Is this what u wanted. :confused: Ketty
Handle it on button click. create an object of ur class Class DBConnection { public void Connect() { ....do ur code; } } Button1_Click() { DbConnection DbConn = new DBConnection(); DBConn.Connect(); } U can pass and return parameters too to this Connect Function; I hope I am up to ur expection...:-D Ketty
If U have the struct in the same namespace as ur code the code below works. C c = new C(); c.clan = 1; Console.WriteLine(c.clan.ToString()); and if in different namespace -- in that case using can follow the initial using block. I mean immediately after using System; using System.Data; .... using NameSpaceName.C; C c = new C(); c.clan = 1; Console.WriteLine(c.clan.ToString()); I hope this help and that i have not missunderstood ur question.:rolleyes: Ketty