This is a migrated thread and some comments may be shown as answers.

Gridview filter row focus not showing cursor and textbox programmatically

6 Answers 192 Views
GridView
This is a migrated thread and some comments may be shown as answers.
sajeev ks
Top achievements
Rank 1
sajeev ks asked on 19 May 2015, 07:12 PM

I can't find an soloution for my problem. I already searched and tried many hours, but without success.

Well, I hope somebody can help me with my problem. 

I am  Using Telerik winforms 2015 Q1....

How it is possible via code to set a focus on RadGridViews Filter TextBox Column like textbox blink ?

MY application Loading page has 1 Gridview

after populate grid i want to cursor focus(cursor blink)  to fliter row first column...

now only work after any key press  or mouse click on fliter row- showing fliter text box...

 i need to show after page load cursor blinking gridview filter row first column like textbox blink

Thank you

sajeev

6 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 20 May 2015, 08:59 AM
Hello Sajeev,

Thank you for writing.

You should select the current cell with code and call the BeginUpdate method (this should happen when the form is already visible):
void RadForm1_Shown(object sender, EventArgs e)
{         
    radGridView1.CurrentRow = radGridView1.MasterView.TableFilteringRow;
    radGridView1.CurrentColumn = radGridView1.Columns[0];
   
    radGridView1.BeginEdit();
}

I have noticed that you have posted similar thread. I have deleted it in order to avoid duplicate threads in our forum.

I hope this will be useful.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
sajeev ks
Top achievements
Rank 1
answered on 20 May 2015, 09:22 AM

Thanks for writing Quick reply Admin...

 

Can u Post Sample Project vb.net

 

Thanks

0
sajeev ks
Top achievements
Rank 1
answered on 20 May 2015, 09:57 AM

    Private Sub frmSearch_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
        grd.CurrentRow = grd.MasterView.TableFilteringRow
        grd.CurrentColumn = grd.Columns(0)
        grd.BeginEdit()

    End Sub

 

This code working...But BeginUpdate() not called..I dont know what use beginupdate() function...

Admin can u explain...

Thanks

0
Dimitar
Telerik team
answered on 21 May 2015, 07:34 AM
Hi Sajeev,

Thank you for writing back.

The BeginEdit method is used for putting a cell in edit mode programmatically. The BeginUpdate/EndUpdate methods are used for suspending the grid notifications when a time consuming operation is performed (like adding several rows). This way the grid will be updated when the EndUpdate method is called not after each row is added.

To convert from C# to Visual Basic you can use our online converter: Code Converter.

I hope this information helps. 

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
sajeev ks
Top achievements
Rank 1
answered on 21 May 2015, 09:56 AM

Admin

This Thread PLease moves to Gridview Section...

I Posted Gridview..but ur Moved to GrantView Section..

 PLease move to gridview section

0
Dimitar
Telerik team
answered on 21 May 2015, 01:39 PM
Hello Sajeev,

I have changed the forum section. Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
sajeev ks
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
sajeev ks
Top achievements
Rank 1
Share this question
or