|
Hi,
I need to clear all the Control field's - (Radiobuttonlist, Dropdownlist, Textboxes and Fileupload) values on a button click. I am able to do for Radiobuttonlist, Dropdownlist and Textboxes but not able to do for FileUpload control. Can anyone please help me out in this. Thanks in advance
Thanks,
Santa.
|
|
|
|
|
You should:
1. Post this in the ASP.NET forum.
2. Post some code to show what you have tried.
|
|
|
|
|
Hi,
I want to show serial numbers on the row headers and check boxes in the first columns of the grid. Please give me an idea or reffer me to some good article.
Thanks
Syed Shahid Hussain
|
|
|
|
|
Firstly, what sort of grid?
1) A Windows Forms DataGrid ?
2) A Windows Forms DataGridView .
3) A Web Forms DataGrid .
If either of the first two, and they are the only two items of data that you want in your DataGrid , it seems to me that you might be better using a data bound CheckedListBox .
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks Henry,
But I want to make a user control in which I can allow the user to see row numbering and the selection check box. numbering is not so important but check box is keen requirement. And I want to give the check box option in the properties window so that in some cases if we dont want to show check box it will not generated. Iæve in mind that there is onpaint method where I've to write code but how I just want a move.
(This GV will be used very frequently in my appplication so that plz reply soon I wnat to develop it as soon as possible)
Thanks
Syed Shahid Hussain
|
|
|
|
|
I suggest the following search terms for Bingle
1) c# add checkbox column to datagridview
2) c# datagridview row header text
Loads of hits for both. Just pick the ones that fit your scenario best.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hi..all,
We are going to make PDF file from image tiff. Also we have co-ordinate information of the text. Now we want to hide the text in specified position. Is this dll has facility to hide the text in specified position?
Please Help me..
any example would be appreciated..
Thanks,
Raj
|
|
|
|
|
You know the co-ordinate of the text in the image file? then maybe you could try drawing a white box or something over the text on the image, then convert it to pdf.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
thanks for your reply..
actually i am using itextsharp.
i am able draw text in specified position by using coordinate but i want to hide that text means the text is show in invisible mode.
when we select the pdf text and copy to text or word he shows there..!!
so if there is any example to how to do this would be great help for me.
Thanks,
Raj
|
|
|
|
|
Hi,
I am trying to pass a datatable as a parameter to a stored procedure. my sql server is 2008.
Also my database transactions happens with the class from enterprise library January 2006.
Following is my code:
DataTable dt = new DataTable();
DataColumn dcol = new DataColumn("Col1", typeof(int));
dt.Columns.Add(dcol);
DataRow dr;
dr = dt.NewRow();
dr["Col1"] = 1;
dt.Rows.Add(dr);
SqlParameter parameter = new SqlParameter("@MenuRights", SqlDbType.Structured);
parameter.Value = dt;
DataTable dtbl = ExecuteDatabaseQuery.Reference.ExecuteQuery_DataTable(ConAdmin, "teststorepro", "teststorepro",
ProjectConstants.QueryType.StoredProc, null, true, null,
parameter);
When the sqlcommand is made and passed for executing, it throws an error
"Failed to convert parameter value to IEnumerable".
Following is the code from enterprise library:
Database db = (Database)CreateConnection(ConnectionName);
if (WriteInfoInLogFile == true && WriteToLogs == true)
{
CLogger.Reference.sLogInfo(ConnectionName, OptionName, oQuery, TypeOfQuery, CLogger.EStatus.StartProcess, LogMsg, CLogger.MsgType.Information, SQLParams);
}
DbCommand cmd = (DbCommand)CreateCommand(db, oQuery, TypeOfQuery, cmdTimeOutMin, SQLParams);
DataSet dstStorePro = db.ExecuteDataSet(cmd);
if (dstStorePro.Tables.Count > 0)
{
int TableCount = dstStorePro.Tables.Count;
for (int i = 0; i < TableCount; i++)
{
DataTable dtbl = dstStorePro.Tables[i];
Boolean HasMsg = GetStoreProMessage.GetMessage(dtbl);
if (HasMsg == false)
{
dt = dtbl;
}
}
}
when the command is passed to db.ExecuteDataSet(cmd); , it throws the above error.
Sandeep Kumbhar
|
|
|
|
|
any solution
thanks
Sandeep Kumbhar
modified on Wednesday, September 16, 2009 12:00 AM
|
|
|
|
|
Hi,
i am developing windows desktop application using c#.net
in my application how can i use google api for searching google ad-sense
please describe me the approach for this
Thanks
Anil Veeraghattapu.
|
|
|
|
|
Anil709 wrote: please describe me the approach for this
Open up your web browser. Go to this[^] page. Read the documentation. Write the code.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
are you sure it is relevant to me question
i want to use the google api in my windows application that is developed using c#.net
so please tell me what kind of webservice i have to use
Thanks
Anil Veeraghattapu.
|
|
|
|
|
how do you check if your, for example datagridview control or any control
is inside a panel or not? using winforms
any help is highly appreciated
Life - Dreams = Job
TheCardinal
BenPOS Systems
|
|
|
|
|
YourControl.Parent property will tell that.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Honestly, one day in this forum, I'm not gonna get beaten to the punch.
It's like tenth time in a row that's happened.
;>
var question = (_2b || !(_2b));
|
|
|
|
|
Cannot understand it.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
You answered two minutes before me, therefore "beat me to the punch".
And it seems like that has happened like 10 times to me already ;> "Someone beat me to the punch."
var question = (_2b || !(_2b));
|
|
|
|
|
Oh...
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
yourControl.Parent.GetType();
gives you the type of your Parent control, if you are interested in that.
Without the .GetType() you'll get the control itself. Check if it's a panel like this:
if(yourControl.Parent is Panel)
{
MessageBox.Show("Hooray");
}
var question = (_2b || !(_2b));
|
|
|
|
|
thanks guys cheers
Life - Dreams = Job
TheCardinal
BenPOS Systems
|
|
|
|
|
I created an application to communicate to a device in Wince...
i m able to open my serial com port using my application.. but when i write some thing to the port .... its hanging ....is there any components or sme thing which is required to add when i create OS image ....
pls help me to get out of this mess....
|
|
|
|
|
how to restrict the user from entering numbers or any special char.... and pls also send me list or ascii key
|
|
|
|
|
You will need to handle either key down, key up or key press events. Make sure to check for modifier keys. You will also need to handle pasting too.
There's an example here[^] that only allows numerics. You can easily use this to work out what you need to do for your situation.
|
|
|
|