Sorry, I don't know what "infragistics grid" is. No, to bind a dataset to a datagrid will never overwrite the existing columns of the datagrid. If you set the property "AutoGenerateColumns" to false, no columns will be created when you execute "DataBind()". ---------------------------------- Was it a cat I saw?
junglerover77
Posts
-
insert a image button in asp.net grid -
insert a image button in asp.net gridjust add a template column, and create an imagebutton in ItemTemplate. then, use ItemDataBound Event: protected void datagrid_ItemDataBound(object sender, DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType==ListItemType.AlternatingItem) { ImageButton imgBtn = (ImageButton)e.Item.FindControl("ImageButton1"); //do whatever you want } } Was it a cat I saw?
-
I need some help with DBNull and checkboxesTo Check if a field's value is null: dataset.tables[0].row[0]["Field_Name"] == DBNull.Value Was it a cat I saw?
-
Common tasks in base classes, how?base class: protected int commonID; // this is common to all object public BaseClass{ } public void DoOtherThing { console.write commonID; // or something that accesses id } /////////////////////////////////////////////// sub-class: public myClass(int id) { commonID = id; DoOtherThing(); } Was it a cat I saw?
-
How to avoid last event from execution when page is refreshedI think that's a standard behavior of Internet Explorer so that should be impossible to achieve your goal. But you can put a hyperlink to itself in each page and click it instead of click "Refresh". Was it a cat I saw?
-
pass more than one parameters to my stored procedure at a timecommandobj.Parameters.AddRange(new SqlParameter[] { new SqlParameter("aaa", "bbb"), new SqlParameter("ccc", "ddd") }); Was it a cat I saw?
-
how to start a programe when the system is logged in.using Microsoft.Win32; Registry.SetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run","MyApp", Application.ExecutablePath); Was it a cat I saw?
-
DataKeyField,God bless it...I'm using DataGrid 2.0, and I'm pretty sure that "DataKeyField" property still exists in DataGrid 2.0 . Was it a cat I saw?
-
Random in C#just use an INVISIBLE TextBox control to store the track and count of the clicks.:zzz: