|
there isn't a selectedIndex property and I haven't hooked any events as of yet.
|
|
|
|
|
Sorry My friend. This Option is available in net.2005 for ASP:gridview.
what version u r using?
Regards,
A Jabeer Ali
|
|
|
|
|
.Net 2.0 with C# 2005.
I am using a WinForms DataGridView.
|
|
|
|
|
I have tried ClearSelection and I have also set the selection mode to select a full row
|
|
|
|
|
Check the Row Template for this Line
DataGridViewRow { Index=-1 }
Regards,
A Jabeer Ali
|
|
|
|
|
And do what may I ask?
I am unable to change it and the grid.RowTemplate.Index is read-only.
|
|
|
|
|
I've found that ClearSelection will only work if I use the DataSource property.
|
|
|
|
|
Try dataGridView1.ClearSelection(); after populating the grid with data. That should de-select anything that is selected.
|
|
|
|
|
DatagridView1.Rows(0).Selected = False
|
|
|
|
|
hello
how can i find component for receive picture from scanner in C#.net
|
|
|
|
|
Hi all,
I have design the web site with the some Control. If i press the button then the New textbox will be created. This is Working fine.But when i refresh the page after click the button also the textbox created.
Kindly help me.
Regards,
A Jabeer Ali.
Regards,
A Jabeer Ali
|
|
|
|
|
When you refresh, you do the postback again, thus the button press will occur again.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Hello Christian,
Is there some kind of Application.DoEvents() call, responsible for that?
All the best,
Martin
|
|
|
|
|
From my knowlegde There is no such function available. Please tell me some solution to refresh the Button event to happen.
Regards,
A Jabeer Ali
|
|
|
|
|
The Button Press Should not happen when the user hits the refresh Button.
Regards,
A Jabeer Ali
|
|
|
|
|
When i change the method of the Form to "POST". Then if i refresh the Page is asking me confirmation Dialog. If i press ok then the Textbox is Created else not. But i need even that should not be happen.
Regards,
A Jabeer Ali
|
|
|
|
|
This happens because you are refreshing the last operation - which was the javascript doPostback operation. If you don't want this to happen, I would suggest that you change the architecture so you don't need the postback to happen.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Can you Help me in changing the Architecture
Regards,
A Jabeer Ali
|
|
|
|
|
Well, you may want to look into Ajax. This doesn't use postbacks.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
There is such option available. U mean to say Ispostback Option. If i give the Ispostback option. When the page refresh that will also run.
Regards,
A Jabeer Ali
|
|
|
|
|
Hi,
Im trying to print a data grid view. I currently have 2 methods, one converts the control to an image (DrawToBitmap) and the other goes through the data rows and draws strings.
The problem i'm having is when converting the control to a bitmap, since it only displays what is on the screen, and not the whole control.
Bitmap dataGridViewImage = new Bitmap(dataGridView.Width, dataGridView.Height);<br />
Rectangle dataGridRects = new Rectangle(0, 0, dataGridView.Width, dataGridView.Height);<br />
dataGridView.DrawToBitmap(dataGridViewImage, dataGridRects);
The above code is what i do to convert it to an image. I played around with it abit, and found that if i changed the dataGridView.Width/Height values, it would actually display whats not on the screen. However, since i never know how big the
dataGridView is, how would get the correct size?
Any ideas/anyone had this before?
Regards,
Gareth.
|
|
|
|
|
does any1 know how 2 capture still image from webcam and then paint that image file on the form using C#....... Any article u recommend with more description so that I can get it...........
THANX 4 ur help in advance.........
|
|
|
|
|
Hi,
Have a Scenario like below .
In my prog. there's Async. calls to listen messages from network. Whenever any error occurs i have to pop-up a message window to user. I used Raise event whenever i got error. Raise event calls a Notification manager delegate which will create the notification form and pop up. initially this window greyed out. But added DoEvents()soon after creating window solved the problem.Now i'm able to click on the cancel button in the window. That is control is not transferred to notification window. where as i can still work with other opened windows.
How do i pass control focus to notifaction message box.
BY
BAIJUMAX
"Things are simple by nature ; oh hooo ; Are we making things complex"
|
|
|
|
|
Hello everbody!
Just looked threw my project and found code which I don't like at all.
I'm having an instance of DataRow and go threw it in a loop.
There I need to store the data for example in a double array.
This is what I do now:
if (myrow[x].GetType() == typeof(System.Double))
{
doublearray[x]= (double)myrow[x];
}
For reference types I would use the "as" operator!
Is there a nicer way to do this?
Thanks for suggestions!
All the best,
Martin
|
|
|
|